Documentation
¶
Index ¶
- func ApplyDefaults(ps *api.PetSet)
- func SetupPetSetWebhookWithManager(mgr ctrl.Manager) error
- type PetSetCustomWebhook
- func (w *PetSetCustomWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *PetSetCustomWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *PetSetCustomWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *PetSetCustomWebhook) ValidateUpdate(ctx context.Context, old, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDefaults ¶ added in v0.0.15
ApplyDefaults applies default values to a PetSet. This function can be called from both webhook and controller to ensure consistent defaulting.
func SetupPetSetWebhookWithManager ¶
SetupPetSetWebhookWithManager registers the webhook for PetSet in the manager.
Types ¶
type PetSetCustomWebhook ¶
+kubebuilder:object:generate=false
func (*PetSetCustomWebhook) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*PetSetCustomWebhook) ValidateCreate ¶
func (w *PetSetCustomWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*PetSetCustomWebhook) ValidateDelete ¶
func (w *PetSetCustomWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*PetSetCustomWebhook) ValidateUpdate ¶
func (w *PetSetCustomWebhook) ValidateUpdate(ctx context.Context, old, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.