Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +groupName=foo.example.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- 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() (admission.Warnings, error)
- func (r *Foo) ValidateDelete() (admission.Warnings, error)
- func (r *Foo) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)
- type FooList
- type FooSpec
- type FooStatus
- type FooType
Constants ¶
const (
// FooFinalizer ...
FooFinalizer = "finalizers.example.io/foo-bar"
)
const GroupName = "foo.example.io"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Foo ¶
type Foo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FooSpec `json:"spec"` // +optional Status FooStatus `json:"status,omitempty"` }
Foo ...
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) SetupWebhookWithManager ¶
SetupWebhookWithManager ...
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 ...
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 { // +kubebuilder:default=A Type FooType `json:"type"` // +kubebuilder:validation:MinLength=2 Key string `json:"key"` // +optional Value string `json:"value,omitempty"` }
FooSpec ...
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 { // +kubebuilder:pruning:PreserveUnknownFields // +optional Raw *runtime.RawExtension `json:"raw,omitempty"` }
FooStatus ...
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.