v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefaults added in v0.0.15

func ApplyDefaults(ps *api.PetSet)

ApplyDefaults applies default values to a PetSet. This function can be called from both webhook and controller to ensure consistent defaulting.

func SetupPetSetWebhookWithManager

func SetupPetSetWebhookWithManager(mgr ctrl.Manager) error

SetupPetSetWebhookWithManager registers the webhook for PetSet in the manager.

Types

type PetSetCustomWebhook

type PetSetCustomWebhook struct {
	DefaultClient client.Client
}

+kubebuilder:object:generate=false

func (*PetSetCustomWebhook) Default

func (w *PetSetCustomWebhook) Default(ctx context.Context, obj runtime.Object) error

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

Jump to

Keyboard shortcuts

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