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