v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 22 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 webhook.CustomValidator so a webhook will be registered for the type Cluster.

func (*ClusterCustomValidator) ValidateDelete

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

func (*ClusterCustomValidator) ValidateUpdate

func (v *ClusterCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator 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 webhook.CustomValidator so a webhook will be registered for the type Failover.

func (*FailoverCustomValidator) ValidateDelete

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

func (*FailoverCustomValidator) ValidateUpdate

func (v *FailoverCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator 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, obj runtime.Object) (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, obj runtime.Object) (warns admission.Warnings, err error)

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

func (*UserCustomValidator) ValidateDelete

func (v *UserCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warns admission.Warnings, err error)

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

func (*UserCustomValidator) ValidateUpdate

func (v *UserCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warns admission.Warnings, err error)

ValidateUpdate implements webhook.CustomValidator 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