Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the test v1 API group +kubebuilder:object:generate=true +groupName=test.kkohtaka.org
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "test.kkohtaka.org", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Child ¶
type Child struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ChildSpec `json:"spec,omitempty"` Status ChildStatus `json:"status,omitempty"` }
Child is the Schema for the children API +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Child) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Child.
func (*Child) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Child) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChildList ¶
type ChildList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Child `json:"items"` }
ChildList contains a list of Child
func (*ChildList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChildList.
func (*ChildList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChildList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChildPhase ¶
type ChildPhase string
+kubebuilder:validation:Enum=Creating;Running;Updating;Deleting +kubebuilder:default=Creating
const ( ChildPhaseCreating ChildPhase = "Creating" ChildPhaseRunning ChildPhase = "Running" ChildPhaseUpdating ChildPhase = "Updating" ChildPhaseDeleting ChildPhase = "Deleting" )
type ChildSpec ¶
type ChildSpec struct { }
ChildSpec defines the desired state of Child
func (*ChildSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChildSpec.
func (*ChildSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChildStatus ¶
type ChildStatus struct {
Phase ChildPhase `json:"phase,omitempty"`
}
ChildStatus defines the observed state of Child
func (*ChildStatus) DeepCopy ¶
func (in *ChildStatus) DeepCopy() *ChildStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChildStatus.
func (*ChildStatus) DeepCopyInto ¶
func (in *ChildStatus) DeepCopyInto(out *ChildStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Parent ¶
type Parent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ParentSpec `json:"spec,omitempty"` Status ParentStatus `json:"status,omitempty"` }
Parent is the Schema for the parents API +kubebuilder:printcolumn:name="Children",type=integer,JSONPath=`.spec.numChildren` +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Parent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parent.
func (*Parent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Parent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ParentList ¶
type ParentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Parent `json:"items"` }
ParentList contains a list of Parent
func (*ParentList) DeepCopy ¶
func (in *ParentList) DeepCopy() *ParentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentList.
func (*ParentList) DeepCopyInto ¶
func (in *ParentList) DeepCopyInto(out *ParentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ParentList) DeepCopyObject ¶
func (in *ParentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ParentPhase ¶
type ParentPhase string
+kubebuilder:validation:Enum=Creating;Running;Updating;Deleting +kubebuilder:default=Creating
const ( ParentPhaseCreating ParentPhase = "Creating" ParentPhaseRunning ParentPhase = "Running" ParentPhaseUpdating ParentPhase = "Updating" ParentPhaseDeleting ParentPhase = "Deleting" )
type ParentSpec ¶
type ParentSpec struct {
NumChildren int32 `json:"numChildren,omitempty"`
}
ParentSpec defines the desired state of Parent
func (*ParentSpec) DeepCopy ¶
func (in *ParentSpec) DeepCopy() *ParentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentSpec.
func (*ParentSpec) DeepCopyInto ¶
func (in *ParentSpec) DeepCopyInto(out *ParentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParentStatus ¶
type ParentStatus struct {
Phase ParentPhase `json:"phase,omitempty"`
}
ParentStatus defines the observed state of Parent
func (*ParentStatus) DeepCopy ¶
func (in *ParentStatus) DeepCopy() *ParentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentStatus.
func (*ParentStatus) DeepCopyInto ¶
func (in *ParentStatus) DeepCopyInto(out *ParentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.