v1alpha1

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains webhook code for version v1alpha1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupLibraryWebhookWithManager

func SetupLibraryWebhookWithManager(mgr ctrl.Manager) error

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.

func (*LibraryCustomDefaulter) Default

nolint:all Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Library.

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

nolint:all ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Library.

func (*LibraryCustomValidator) ValidateDelete

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL