Documentation
¶
Index ¶
- func SetupVMDistributedWebhookWithManager(mgr ctrl.Manager) error
- type VMDistributedCustomValidator
- func (*VMDistributedCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (*VMDistributedCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMDistributedCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (warnings admission.Warnings, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupVMDistributedWebhookWithManager ¶
SetupVMDistributedWebhookWithManager will setup the manager to manage the webhooks
Types ¶
type VMDistributedCustomValidator ¶
type VMDistributedCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1alpha1-vmdistributed,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmdistributed,verbs=create;update,versions=v1alpha1,name=vmdistributed-v1alpha1.kb.io,admissionReviewVersions=v1
func (*VMDistributedCustomValidator) ValidateCreate ¶
func (*VMDistributedCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMDistributedCustomValidator) ValidateDelete ¶
func (*VMDistributedCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMDistributedCustomValidator) ValidateUpdate ¶
func (*VMDistributedCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (warnings admission.Warnings, err error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type