Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubernetes-sigs/kubebuilder/test/projects/validations/pkg/apis/apps +k8s:defaulter-gen=TypeMeta +groupName=apps.validation.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestKind ¶
type TestKind struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TestKindSpec `json:"spec,omitempty"`
Status TestKindStatus `json:"status,omitempty"`
}
TestKind +k8s:openapi-gen=true +kubebuilder:resource:path=testkinds
type TestKindSpec ¶
type TestKindSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "kubebuilder generate" to regenerate code after modifying this file
Count int `json:"count"`
// +kubebuilder:validation:Maximum=100
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:ExclusiveMinimum=true
Power float32 `json:"power,omitempty"`
Bricks int32 `json:"bricks,omitempty"`
// +kubebuilder:validation:MaxLength=15
// +kubebuilder:validation:MinLength=1
Name string `json:"name,omitempty"`
// +kubebuilder:validation:MaxItems=500
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:UniqueItems=false
Knights []string `json:"knights,omitempty"`
Winner bool `json:"winner,omitempty"`
// +kubebuilder:validation:Enum=Lion,Wolf,Dragon
Alias string `json:"alias,omitempty"`
// +kubebuilder:validation:Enum=1,2,3
Rank int `json:"rank"`
Comment []byte `json:"comment,omitempty"`
}
TestKindSpec defines the desired state of TestKind
type TestKindStatus ¶
type TestKindStatus struct {
}
TestKindStatus defines the observed state of TestKind
Click to show internal directories.
Click to hide internal directories.