v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupClusterWebhookWithManager

func SetupClusterWebhookWithManager(mgr ctrl.Manager) error

SetupClusterWebhookWithManager registers the webhook for Cluster in the manager.

func SetupFailoverWebhookWithManager

func SetupFailoverWebhookWithManager(mgr ctrl.Manager) error

SetupFailoverWebhookWithManager registers the webhook for Failover in the manager.

func SetupUserWebhookWithManager

func SetupUserWebhookWithManager(mgr ctrl.Manager) error

SetupUserWebhookWithManager registers the webhook for User in the manager.

Types

type ClusterCustomValidator

type ClusterCustomValidator struct{}

ClusterCustomValidator struct is responsible for validating the Cluster 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 (*ClusterCustomValidator) ValidateCreate

ValidateCreate implements admission.Validator so a webhook will be registered for the type Cluster.

func (*ClusterCustomValidator) ValidateDelete

ValidateDelete implements admission.Validator so a webhook will be registered for the type Cluster.

func (*ClusterCustomValidator) ValidateUpdate

func (v *ClusterCustomValidator) ValidateUpdate(ctx context.Context, oldCluster, newCluster *valkeybufredv1alpha1.Cluster) (admission.Warnings, error)

ValidateUpdate implements admission.Validator so a webhook will be registered for the type Cluster.

type FailoverCustomValidator

type FailoverCustomValidator struct{}

FailoverCustomValidator struct is responsible for validating the Failover 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 (*FailoverCustomValidator) ValidateCreate

ValidateCreate implements admission.Validator so a webhook will be registered for the type Failover.

func (*FailoverCustomValidator) ValidateDelete

ValidateDelete implements admission.Validator so a webhook will be registered for the type Failover.

func (*FailoverCustomValidator) ValidateUpdate

func (v *FailoverCustomValidator) ValidateUpdate(ctx context.Context, oldFailover, newFailover *valkeybufredv1alpha1.Failover) (admission.Warnings, error)

ValidateUpdate implements admission.Validator so a webhook will be registered for the type Failover.

type UserCustomDefaulter

type UserCustomDefaulter struct {
	// contains filtered or unexported fields
}

UserCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind User 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 (*UserCustomDefaulter) Default

func (d *UserCustomDefaulter) Default(ctx context.Context, inst *valkeybufredv1alpha1.User) (err error)

type UserCustomValidator

type UserCustomValidator struct {
	// contains filtered or unexported fields
}

UserCustomValidator struct is responsible for validating the User 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 (*UserCustomValidator) ValidateCreate

func (v *UserCustomValidator) ValidateCreate(ctx context.Context, inst *valkeybufredv1alpha1.User) (warns admission.Warnings, err error)

ValidateCreate implements admission.Validator so a webhook will be registered for the type User.

func (*UserCustomValidator) ValidateDelete

func (v *UserCustomValidator) ValidateDelete(ctx context.Context, inst *valkeybufredv1alpha1.User) (warns admission.Warnings, err error)

ValidateDelete implements admission.Validator so a webhook will be registered for the type User.

func (*UserCustomValidator) ValidateUpdate

func (v *UserCustomValidator) ValidateUpdate(ctx context.Context, oldInst, newInst *valkeybufredv1alpha1.User) (warns admission.Warnings, err error)

ValidateUpdate implements admission.Validator so a webhook will be registered for the type User.

Jump to

Keyboard shortcuts

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