Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the webhook v1 API group +kubebuilder:object:generate=true +groupName=webhook.operators.coreos.io
Index ¶
- Variables
- type WebhookTest
- func (in *WebhookTest) DeepCopy() *WebhookTest
- func (in *WebhookTest) DeepCopyInto(out *WebhookTest)
- func (in *WebhookTest) DeepCopyObject() runtime.Object
- func (r *WebhookTest) Default()
- func (*WebhookTest) Hub()
- func (r *WebhookTest) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *WebhookTest) ValidateCreate() error
- func (r *WebhookTest) ValidateDelete() error
- func (r *WebhookTest) ValidateUpdate(old runtime.Object) error
- type WebhookTestList
- type WebhookTestSpec
- type WebhookTestStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "webhook.operators.coreos.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 WebhookTest ¶
type WebhookTest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WebhookTestSpec `json:"spec,omitempty"` Status WebhookTestStatus `json:"status,omitempty"` }
WebhookTest is the Schema for the webhooktests API
func (*WebhookTest) DeepCopy ¶
func (in *WebhookTest) DeepCopy() *WebhookTest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookTest.
func (*WebhookTest) DeepCopyInto ¶
func (in *WebhookTest) DeepCopyInto(out *WebhookTest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebhookTest) DeepCopyObject ¶
func (in *WebhookTest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WebhookTest) Default ¶
func (r *WebhookTest) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*WebhookTest) SetupWebhookWithManager ¶
func (r *WebhookTest) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*WebhookTest) ValidateCreate ¶
func (r *WebhookTest) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*WebhookTest) ValidateDelete ¶
func (r *WebhookTest) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*WebhookTest) ValidateUpdate ¶
func (r *WebhookTest) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type WebhookTestList ¶
type WebhookTestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WebhookTest `json:"items"` }
WebhookTestList contains a list of WebhookTest
func (*WebhookTestList) DeepCopy ¶
func (in *WebhookTestList) DeepCopy() *WebhookTestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookTestList.
func (*WebhookTestList) DeepCopyInto ¶
func (in *WebhookTestList) DeepCopyInto(out *WebhookTestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebhookTestList) DeepCopyObject ¶
func (in *WebhookTestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WebhookTestSpec ¶
type WebhookTestSpec struct { // Valid must be set to true or the validation webhook will reject the resource. Valid bool `json:"valid"` // Mutate is a field that will be set to true by the mutating webhook. // +optional Mutate bool `json:"mutate,omitempty"` }
WebhookTestSpec defines the desired state of WebhookTest
func (*WebhookTestSpec) DeepCopy ¶
func (in *WebhookTestSpec) DeepCopy() *WebhookTestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookTestSpec.
func (*WebhookTestSpec) DeepCopyInto ¶
func (in *WebhookTestSpec) DeepCopyInto(out *WebhookTestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookTestStatus ¶
type WebhookTestStatus struct { }
WebhookTestStatus defines the observed state of WebhookTest
func (*WebhookTestStatus) DeepCopy ¶
func (in *WebhookTestStatus) DeepCopy() *WebhookTestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookTestStatus.
func (*WebhookTestStatus) DeepCopyInto ¶
func (in *WebhookTestStatus) DeepCopyInto(out *WebhookTestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.