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