v1alpha1

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupClickHouseWebhookWithManager

func SetupClickHouseWebhookWithManager(mgr ctrl.Manager, log controllerutil.Logger) error

SetupClickHouseWebhookWithManager registers the webhook for ClickHouseCluster in the manager.

func SetupKeeperWebhookWithManager

func SetupKeeperWebhookWithManager(mgr ctrl.Manager, log controllerutil.Logger) error

SetupKeeperWebhookWithManager registers the webhook for KeeperCluster in the manager.

Types

type ClickHouseClusterWebhook

type ClickHouseClusterWebhook struct {
	Log controllerutil.Logger
}

ClickHouseClusterWebhook implements a validating and mutating webhook for ClickHouseCluster. +kubebuilder:webhook:path=/mutate-clickhouse-com-v1alpha1-clickhousecluster,mutating=true,failurePolicy=ignore,sideEffects=None,groups=clickhouse.com,resources=clickhouseclusters,verbs=create;update,versions=v1alpha1,name=mclickhousecluster-v1alpha1.kb.io,admissionReviewVersions=v1 +kubebuilder:webhook:path=/validate-clickhouse-com-v1alpha1-clickhousecluster,mutating=false,failurePolicy=ignore,sideEffects=None,groups=clickhouse.com,resources=clickhouseclusters,verbs=create;update,versions=v1alpha1,name=vclickhousecluster-v1alpha1.kb.io,admissionReviewVersions=v1

func (*ClickHouseClusterWebhook) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind ClickHouseCluster.

func (*ClickHouseClusterWebhook) ValidateCreate

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

func (*ClickHouseClusterWebhook) ValidateDelete

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

func (*ClickHouseClusterWebhook) ValidateUpdate

func (w *ClickHouseClusterWebhook) ValidateUpdate(_ context.Context, oldCluster, newCluster *chv1.ClickHouseCluster) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ClickHouseCluster.

type KeeperClusterWebhook

type KeeperClusterWebhook struct {
	Log controllerutil.Logger
}

KeeperClusterWebhook implements a validating and mutating webhook for KeeperCluster. +kubebuilder:webhook:path=/mutate-clickhouse-com-v1alpha1-keepercluster,mutating=true,failurePolicy=ignore,sideEffects=None,groups=clickhouse.com,resources=keeperclusters,verbs=create;update,versions=v1alpha1,name=mkeepercluster.kb.io,admissionReviewVersions=v1 +kubebuilder:webhook:path=/validate-clickhouse-com-v1alpha1-keepercluster,mutating=false,failurePolicy=ignore,sideEffects=None,groups=clickhouse.com,resources=keeperclusters,verbs=create;update,versions=v1alpha1,name=vkeepercluster.kb.io,admissionReviewVersions=v1

func (*KeeperClusterWebhook) Default

func (w *KeeperClusterWebhook) Default(_ context.Context, cluster *chv1.KeeperCluster) error

Default implements webhook.CustomDefaulter so a webhook will be registered for the type.

func (*KeeperClusterWebhook) ValidateCreate

func (w *KeeperClusterWebhook) ValidateCreate(_ context.Context, cluster *chv1.KeeperCluster) (warnings admission.Warnings, err error)

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

func (*KeeperClusterWebhook) ValidateDelete

func (w *KeeperClusterWebhook) ValidateDelete(context.Context, *chv1.KeeperCluster) (warnings admission.Warnings, err error)

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

func (*KeeperClusterWebhook) ValidateUpdate

func (w *KeeperClusterWebhook) ValidateUpdate(_ context.Context, oldCluster, newCluster *chv1.KeeperCluster) (warnings admission.Warnings, err error)

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