Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the samplecontroller v1alpha1 API group +kubebuilder:object:generate=true +groupName=samplecontroller.example.com
Index ¶
- Variables
- type Foo
- func (in *Foo) DeepCopy() *Foo
- func (in *Foo) DeepCopyInto(out *Foo)
- func (in *Foo) DeepCopyObject() runtime.Object
- func (r *Foo) Default()
- func (r *Foo) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Foo) ValidateCreate() error
- func (r *Foo) ValidateDelete() error
- func (r *Foo) ValidateUpdate(old runtime.Object) error
- type FooList
- type FooPhase
- type FooSpec
- type FooStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "samplecontroller.example.com", Version: "v1alpha1"} // 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 Foo ¶
type Foo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FooSpec `json:"spec,omitempty"` Status FooStatus `json:"status,omitempty"` }
Foo is the Schema for the foos API
func (*Foo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Foo.
func (*Foo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Foo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Foo) Default ¶
func (r *Foo) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Foo) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Foo) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type FooList ¶
type FooList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Foo `json:"items"` }
FooList contains a list of Foo
func (*FooList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooList.
func (*FooList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FooList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FooSpec ¶
type FooSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file DeploymentName string `json:"deploymentName"` // +optional Replicas *int32 `json:"replicas"` }
FooSpec defines the desired state of Foo
func (*FooSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooSpec.
func (*FooSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FooStatus ¶
type FooStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Phase FooPhase `json:"phase,omitempty"` }
FooStatus defines the observed state of Foo
func (*FooStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooStatus.
func (*FooStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.