Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the test v1 API group +kubebuilder:object:generate=true +groupName=test.zoetrope.github.io
Index ¶
- Variables
- type Sample
- func (in *Sample) DeepCopy() *Sample
- func (in *Sample) DeepCopyInto(out *Sample)
- func (in *Sample) DeepCopyObject() runtime.Object
- func (r *Sample) Default()
- func (r *Sample) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Sample) ValidateCreate() error
- func (r *Sample) ValidateDelete() error
- func (r *Sample) ValidateUpdate(old runtime.Object) error
- type SampleList
- type SampleSpec
- type SampleStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "test.zoetrope.github.io", 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 Sample ¶
type Sample struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SampleSpec `json:"spec,omitempty"` Status SampleStatus `json:"status,omitempty"` }
Sample is the Schema for the samples API
func (*Sample) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sample.
func (*Sample) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Sample) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Sample) Default ¶
func (r *Sample) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Sample) SetupWebhookWithManager ¶
func (*Sample) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Sample) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type SampleList ¶
type SampleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Sample `json:"items"` }
SampleList contains a list of Sample
func (*SampleList) DeepCopy ¶
func (in *SampleList) DeepCopy() *SampleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SampleList.
func (*SampleList) DeepCopyInto ¶
func (in *SampleList) DeepCopyInto(out *SampleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SampleList) DeepCopyObject ¶
func (in *SampleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SampleSpec ¶
type SampleSpec struct { // +kubebuilder:validation:Required Image string `json:"image"` // +optional Replicas *int32 `json:"replicas,omitempty"` }
SampleSpec defines the desired state of Sample
func (*SampleSpec) DeepCopy ¶
func (in *SampleSpec) DeepCopy() *SampleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SampleSpec.
func (*SampleSpec) DeepCopyInto ¶
func (in *SampleSpec) DeepCopyInto(out *SampleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SampleStatus ¶
type SampleStatus struct { }
SampleStatus defines the observed state of Sample
func (*SampleStatus) DeepCopy ¶
func (in *SampleStatus) DeepCopy() *SampleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SampleStatus.
func (*SampleStatus) DeepCopyInto ¶
func (in *SampleStatus) DeepCopyInto(out *SampleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.