Documentation
¶
Index ¶
- func SetupVLAgentWebhookWithManager(mgr ctrl.Manager) error
- func SetupVLClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupVLSingleWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMAnomalyWebhookWithManager(mgr ctrl.Manager) error
- type VLAgentCustomValidator
- func (*VLAgentCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VLAgentCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VLAgentCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, 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)
- type VMAnomalyCustomValidator
- func (v *VMAnomalyCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *VMAnomalyCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *VMAnomalyCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupVLAgentWebhookWithManager ¶ added in v0.61.0
SetupVLAgentWebhookWithManager will setup the manager to manage the webhooks
func SetupVLClusterWebhookWithManager ¶
SetupVLClusterWebhookWithManager will setup the manager to manage the webhooks
func SetupVLSingleWebhookWithManager ¶
SetupVLSingleWebhookWithManager will setup the manager to manage the webhooks
func SetupVMAnomalyWebhookWithManager ¶ added in v0.60.0
SetupVMAnomalyWebhookWithManager registers the webhook for VMAnomaly in the manager.
Types ¶
type VLAgentCustomValidator ¶ added in v0.61.0
type VLAgentCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1-vlagent,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vlagents,verbs=create;update,versions=v1,name=vvlagent-v1.kb.io,admissionReviewVersions=v1
func (*VLAgentCustomValidator) ValidateCreate ¶ added in v0.61.0
func (*VLAgentCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VLAgentCustomValidator) ValidateDelete ¶ added in v0.61.0
func (*VLAgentCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VLAgentCustomValidator) ValidateUpdate ¶ added in v0.61.0
func (*VLAgentCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
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
type VMAnomalyCustomValidator ¶ added in v0.60.0
type VMAnomalyCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1-vmanomaly,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmanomalies,verbs=create;update,versions=v1,name=vvmanomaly-v1.kb.io,admissionReviewVersions=v1
func (*VMAnomalyCustomValidator) ValidateCreate ¶ added in v0.60.0
func (v *VMAnomalyCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type VMAnomaly.
func (*VMAnomalyCustomValidator) ValidateDelete ¶ added in v0.60.0
func (v *VMAnomalyCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type VMAnomaly.
func (*VMAnomalyCustomValidator) ValidateUpdate ¶ added in v0.60.0
func (v *VMAnomalyCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type VMAnomaly.