Documentation
¶
Index ¶
- func SetupClickHouseWebhookWithManager(mgr ctrl.Manager, log controllerutil.Logger) error
- func SetupKeeperWebhookWithManager(mgr ctrl.Manager, log controllerutil.Logger) error
- type ClickHouseClusterWebhook
- func (w *ClickHouseClusterWebhook) Default(_ context.Context, cluster *chv1.ClickHouseCluster) error
- func (w *ClickHouseClusterWebhook) ValidateCreate(_ context.Context, cluster *chv1.ClickHouseCluster) (admission.Warnings, error)
- func (w *ClickHouseClusterWebhook) ValidateDelete(context.Context, *chv1.ClickHouseCluster) (admission.Warnings, error)
- func (w *ClickHouseClusterWebhook) ValidateUpdate(_ context.Context, oldCluster, newCluster *chv1.ClickHouseCluster) (admission.Warnings, error)
- type KeeperClusterWebhook
- func (w *KeeperClusterWebhook) Default(_ context.Context, cluster *chv1.KeeperCluster) error
- func (w *KeeperClusterWebhook) ValidateCreate(_ context.Context, cluster *chv1.KeeperCluster) (warnings admission.Warnings, err error)
- func (w *KeeperClusterWebhook) ValidateDelete(context.Context, *chv1.KeeperCluster) (warnings admission.Warnings, err error)
- func (w *KeeperClusterWebhook) ValidateUpdate(_ context.Context, oldCluster, newCluster *chv1.KeeperCluster) (warnings admission.Warnings, err error)
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 ¶
func (w *ClickHouseClusterWebhook) Default(_ context.Context, cluster *chv1.ClickHouseCluster) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind ClickHouseCluster.
func (*ClickHouseClusterWebhook) ValidateCreate ¶
func (w *ClickHouseClusterWebhook) ValidateCreate(_ context.Context, cluster *chv1.ClickHouseCluster) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ClickHouseCluster.
func (*ClickHouseClusterWebhook) ValidateDelete ¶
func (w *ClickHouseClusterWebhook) ValidateDelete(context.Context, *chv1.ClickHouseCluster) (admission.Warnings, error)
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.