Documentation
¶
Overview ¶
Package v1alpha1 contains webhook code for version v1alpha1
Index ¶
- func SetupLibraryWebhookWithManager(mgr ctrl.Manager) error
- type LibraryCustomDefaulter
- type LibraryCustomValidator
- func (v *LibraryCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LibraryCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LibraryCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLibraryWebhookWithManager ¶
SetupLibraryWebhookWithManager registers the webhook for Library in the manager.
Types ¶
type LibraryCustomDefaulter ¶
type LibraryCustomDefaulter struct {
}
LibraryCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Library when those are created or updated.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.
type LibraryCustomValidator ¶
type LibraryCustomValidator struct {
}
LibraryCustomValidator struct is responsible for validating the Library resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*LibraryCustomValidator) ValidateCreate ¶
func (v *LibraryCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
nolint:all ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Library.
func (*LibraryCustomValidator) ValidateDelete ¶
func (v *LibraryCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
nolint:all ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Library.
func (*LibraryCustomValidator) ValidateUpdate ¶
func (v *LibraryCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
nolint:all ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Library.