 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package v1alpha1 contains API Schema definitions for the fun v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/pkg/crd/generator/testData/pkg/apis/fun +k8s:defaulter-gen=TypeMeta +groupName=fun.myk8s.io
Package v1alpha1 contains API Schema definitions for the fun v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/pkg/crd/generator/testData/pkg/apis/fun +k8s:defaulter-gen=TypeMeta +groupName=fun.myk8s.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "fun.myk8s.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type Toy ¶
type Toy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec   ToySpec   `json:"spec,omitempty"`
	Status ToyStatus `json:"status,omitempty"`
}
    Toy is the Schema for the toys API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath= +kubebuilder:printcolumn:name="toy",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="descr1",format="date",priority=3 +kubebuilder:printcolumn:name="abc",type="integer",JSONPath="status",description="descr2",format="int32",priority=1 +kubebuilder:printcolumn:name="service",type="string",JSONPath=".status.conditions.ready",description="descr3",format="byte",priority=2 +kubebuilder:resource:path=services,shortName=to;ty +kubebuilder:singular=toy
func (*Toy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Toy.
func (*Toy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Toy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ToyList ¶
type ToyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Toy `json:"items"`
}
    ToyList contains a list of Toy
func (*ToyList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToyList.
func (*ToyList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ToyList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ToyS3LogConfig ¶
type ToyS3LogConfig struct {
	// +kubebuilder:validation:MinLength=1
	Bucket string `json:"bucket,omitempty"`
}
    ToyS3LogConfig defines logs configs using S3 backend
type ToySpec ¶
type ToySpec struct {
	// +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"`
	// This is a comment on an array field.
	// +kubebuilder:validation:MaxItems=500
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:UniqueItems=false
	Knights []string `json:"knights,omitempty"`
	// This is a comment on a boolean field.
	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"`
	// This is a simple string without validation.
	Description string `json:"description"`
	// This is a comment on an object field.
	Template v1.PodTemplateSpec `json:"template"`
	Claim v1.PersistentVolumeClaim `json:"claim,omitempty"`
	//This is a dummy comment.
	// Just checking if the multi-line comments are working or not.
	Replicas *int32 `json:"replicas"`
	// This is a newly added field.
	// Using this for testing purpose.
	Rook *intstr.IntOrString `json:"rook"`
	// Used this for testing fieldNames with number.
	S3Log ToyS3LogConfig `json:"s3Log"`
	// This is a comment on a map field.
	Location map[string]string `json:"location"`
	// This is an IPv4 address.
	// +kubebuilder:validation:Format=ipv4
	Address string `json:"address"`
	// This is a list of IPv4 addresses.
	// +kubebuilder:validation:Format=ipv4
	Addresses []string `json:"addresses"`
}
    ToySpec defines the desired state of Toy
func (*ToySpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToySpec.
func (*ToySpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ToyStatus ¶
type ToyStatus struct {
	// It tracks the number of replicas.
	Replicas int32 `json:"replicas"`
}
    ToyStatus defines the observed state of Toy
func (*ToyStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToyStatus.
func (*ToyStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.