Documentation
¶
Index ¶
- func SetupVLogsWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMAgentWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMAlertWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMAlertmanagerConfigWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMAlertmanagerWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMAuthWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMNodeScrapeWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMPodScrapeWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMProbeWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMRuleWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMScrapeConfigWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMServiceScrapeWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMSingleWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMStaticScrapeWebhookWithManager(mgr ctrl.Manager) error
- func SetupVMUserWebhookWithManager(mgr ctrl.Manager) error
- type VLogsCustomValidator
- func (*VLogsCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VLogsCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VLogsCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMAgentCustomValidator
- func (*VMAgentCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMAgentCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMAgentCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMAlertCustomValidator
- func (*VMAlertCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMAlertCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMAlertCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMAlertmanagerConfigCustomValidator
- func (*VMAlertmanagerConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMAlertmanagerConfigCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMAlertmanagerConfigCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMAlertmanagerCustomValidator
- func (*VMAlertmanagerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMAlertmanagerCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMAlertmanagerCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMAuthCustomValidator
- func (*VMAuthCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMAuthCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMAuthCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMClusterCustomValidator
- func (*VMClusterCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (*VMClusterCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMClusterCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (warnings admission.Warnings, err error)
- type VMNodeScrapeCustomValidator
- func (*VMNodeScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMNodeScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMNodeScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type VMPodScrapeCustomValidator
- func (*VMPodScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMPodScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMPodScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type VMProbeCustomValidator
- func (*VMProbeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMProbeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMProbeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type VMRuleCustomValidator
- func (*VMRuleCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMRuleCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMRuleCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type VMScrapeConfigCustomValidator
- func (*VMScrapeConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMScrapeConfigCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMScrapeConfigCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type VMServiceScrapeCustomValidator
- func (*VMServiceScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMServiceScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMServiceScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type VMSingleCustomValidator
- func (*VMSingleCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (*VMSingleCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMSingleCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (warnings admission.Warnings, err error)
- type VMStaticScrapeCustomValidator
- func (*VMStaticScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMStaticScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMStaticScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type VMUserCustomValidator
- func (*VMUserCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*VMUserCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (*VMUserCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupVLogsWebhookWithManager ¶
SetupVLogsWebhookWithManager will setup the manager to manage the webhooks
func SetupVMAgentWebhookWithManager ¶
SetupVMAgentWebhookWithManager will setup the manager to manage the webhooks
func SetupVMAlertWebhookWithManager ¶
SetupVMAlertWebhookWithManager will setup the manager to manage the webhooks
func SetupVMAlertmanagerConfigWebhookWithManager ¶
SetupVMAlertmanagerConfigWebhookWithManager will setup the manager to manage the webhooks
func SetupVMAlertmanagerWebhookWithManager ¶
SetupVMAlertmanagerWebhookWithManager will setup the manager to manage the webhooks
func SetupVMAuthWebhookWithManager ¶
SetupVMAuthWebhookWithManager will setup the manager to manage the webhooks
func SetupVMClusterWebhookWithManager ¶
SetupVMClusterWebhookWithManager will setup the manager to manage the webhooks
func SetupVMNodeScrapeWebhookWithManager ¶ added in v0.59.0
SetupVMNodeScrapeWebhookWithManager will setup the manager to manage the webhooks
func SetupVMPodScrapeWebhookWithManager ¶ added in v0.59.0
SetupVMPodScrapeWebhookWithManager will setup the manager to manage the webhooks
func SetupVMProbeWebhookWithManager ¶ added in v0.59.0
SetupVMProbeWebhookWithManager will setup the manager to manage the webhooks
func SetupVMRuleWebhookWithManager ¶
SetupVMRuleWebhookWithManager will setup the manager to manage the webhooks
func SetupVMScrapeConfigWebhookWithManager ¶ added in v0.59.0
SetupVMScrapeConfigWebhookWithManager will setup the manager to manage the webhooks
func SetupVMServiceScrapeWebhookWithManager ¶ added in v0.59.0
SetupVMServiceScrapeWebhookWithManager will setup the manager to manage the webhooks
func SetupVMSingleWebhookWithManager ¶
SetupVMSingleWebhookWithManager will setup the manager to manage the webhooks
func SetupVMStaticScrapeWebhookWithManager ¶ added in v0.59.0
SetupVMStaticScrapeWebhookWithManager will setup the manager to manage the webhooks
func SetupVMUserWebhookWithManager ¶
SetupVMUserWebhookWithManager will setup the manager to manage the webhooks
Types ¶
type VLogsCustomValidator ¶
type VLogsCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vlogs,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vlogs,verbs=create;update,versions=v1beta1,name=vvlogs-v1beta1.kb.io,admissionReviewVersions=v1
func (*VLogsCustomValidator) ValidateCreate ¶
func (*VLogsCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VLogsCustomValidator) ValidateDelete ¶
func (*VLogsCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VLogsCustomValidator) ValidateUpdate ¶
func (*VLogsCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
type VMAgentCustomValidator ¶
type VMAgentCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmagent,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmagents,verbs=create;update,versions=v1beta1,name=vvmagent-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMAgentCustomValidator) ValidateCreate ¶
func (*VMAgentCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAgentCustomValidator) ValidateDelete ¶
func (*VMAgentCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAgentCustomValidator) ValidateUpdate ¶
func (*VMAgentCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
type VMAlertCustomValidator ¶
type VMAlertCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmalert,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmalerts,verbs=create;update,versions=v1beta1,name=vvmalert-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMAlertCustomValidator) ValidateCreate ¶
func (*VMAlertCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAlertCustomValidator) ValidateDelete ¶
func (*VMAlertCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAlertCustomValidator) ValidateUpdate ¶
func (*VMAlertCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
type VMAlertmanagerConfigCustomValidator ¶
type VMAlertmanagerConfigCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmalertmanagerconfig,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmalertmanagerconfigs,verbs=create;update,versions=v1beta1,name=vvmalertmanagerconfig-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMAlertmanagerConfigCustomValidator) ValidateCreate ¶
func (*VMAlertmanagerConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAlertmanagerConfigCustomValidator) ValidateDelete ¶
func (*VMAlertmanagerConfigCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAlertmanagerConfigCustomValidator) ValidateUpdate ¶
func (*VMAlertmanagerConfigCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
type VMAlertmanagerCustomValidator ¶
type VMAlertmanagerCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmalertmanager,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmalertmanagers,verbs=create;update,versions=v1beta1,name=vvmalertmanager-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMAlertmanagerCustomValidator) ValidateCreate ¶
func (*VMAlertmanagerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAlertmanagerCustomValidator) ValidateDelete ¶
func (*VMAlertmanagerCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMAlertmanagerCustomValidator) ValidateUpdate ¶
func (*VMAlertmanagerCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
type VMAuthCustomValidator ¶
type VMAuthCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmauth,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmauths,verbs=create;update,versions=v1beta1,name=vvmauth-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMAuthCustomValidator) ValidateCreate ¶
func (*VMAuthCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMAuthCustomValidator) ValidateDelete ¶
func (*VMAuthCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMAuthCustomValidator) ValidateUpdate ¶
func (*VMAuthCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMClusterCustomValidator ¶
type VMClusterCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmcluster,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmclusters,verbs=create;update,versions=v1beta1,name=vvmcluster-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMClusterCustomValidator) ValidateCreate ¶
func (*VMClusterCustomValidator) 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 (*VMClusterCustomValidator) ValidateDelete ¶
func (*VMClusterCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMClusterCustomValidator) ValidateUpdate ¶
func (*VMClusterCustomValidator) 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
type VMNodeScrapeCustomValidator ¶ added in v0.59.0
type VMNodeScrapeCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmnodescrape,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmnodescrapes,verbs=create;update,versions=v1beta1,name=vvmnodescrape-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMNodeScrapeCustomValidator) ValidateCreate ¶ added in v0.59.0
func (*VMNodeScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMNodeScrapeCustomValidator) ValidateDelete ¶ added in v0.59.0
func (*VMNodeScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMNodeScrapeCustomValidator) ValidateUpdate ¶ added in v0.59.0
func (*VMNodeScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMPodScrapeCustomValidator ¶ added in v0.59.0
type VMPodScrapeCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmpodscrape,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmpodscrapes,verbs=create;update,versions=v1beta1,name=vvmpodscrape-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMPodScrapeCustomValidator) ValidateCreate ¶ added in v0.59.0
func (*VMPodScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMPodScrapeCustomValidator) ValidateDelete ¶ added in v0.59.0
func (*VMPodScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMPodScrapeCustomValidator) ValidateUpdate ¶ added in v0.59.0
func (*VMPodScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMProbeCustomValidator ¶ added in v0.59.0
type VMProbeCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmpodscrape,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmpodscrapes,verbs=create;update,versions=v1beta1,name=vvmpodscrape-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMProbeCustomValidator) ValidateCreate ¶ added in v0.59.0
func (*VMProbeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMProbeCustomValidator) ValidateDelete ¶ added in v0.59.0
func (*VMProbeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMProbeCustomValidator) ValidateUpdate ¶ added in v0.59.0
func (*VMProbeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMRuleCustomValidator ¶
type VMRuleCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmrule,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmrules,verbs=create;update,versions=v1beta1,name=vvmrule.kb.io,admissionReviewVersions=v1
func (*VMRuleCustomValidator) ValidateCreate ¶
func (*VMRuleCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMRuleCustomValidator) ValidateDelete ¶
func (*VMRuleCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMRuleCustomValidator) ValidateUpdate ¶
func (*VMRuleCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
type VMScrapeConfigCustomValidator ¶ added in v0.59.0
type VMScrapeConfigCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmscrapeconfig,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmscrapeconfigs,verbs=create;update,versions=v1beta1,name=vvmscrapeconfig-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMScrapeConfigCustomValidator) ValidateCreate ¶ added in v0.59.0
func (*VMScrapeConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMScrapeConfigCustomValidator) ValidateDelete ¶ added in v0.59.0
func (*VMScrapeConfigCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMScrapeConfigCustomValidator) ValidateUpdate ¶ added in v0.59.0
func (*VMScrapeConfigCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMServiceScrapeCustomValidator ¶ added in v0.59.0
type VMServiceScrapeCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmservicescrape,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmservicescrapes,verbs=create;update,versions=v1beta1,name=vvmservicescrape-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMServiceScrapeCustomValidator) ValidateCreate ¶ added in v0.59.0
func (*VMServiceScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMServiceScrapeCustomValidator) ValidateDelete ¶ added in v0.59.0
func (*VMServiceScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMServiceScrapeCustomValidator) ValidateUpdate ¶ added in v0.59.0
func (*VMServiceScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMSingleCustomValidator ¶
type VMSingleCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmsingle,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmsingles,verbs=create;update,versions=v1beta1,name=vvmsingle-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMSingleCustomValidator) ValidateCreate ¶
func (*VMSingleCustomValidator) 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 (*VMSingleCustomValidator) ValidateDelete ¶
func (*VMSingleCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMSingleCustomValidator) ValidateUpdate ¶
func (*VMSingleCustomValidator) 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
type VMStaticScrapeCustomValidator ¶ added in v0.59.0
type VMStaticScrapeCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmstaticscrape,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmstaticscrapes,verbs=create;update,versions=v1beta1,name=vvmstaticscrape-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMStaticScrapeCustomValidator) ValidateCreate ¶ added in v0.59.0
func (*VMStaticScrapeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VMStaticScrapeCustomValidator) ValidateDelete ¶ added in v0.59.0
func (*VMStaticScrapeCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VMStaticScrapeCustomValidator) ValidateUpdate ¶ added in v0.59.0
func (*VMStaticScrapeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VMUserCustomValidator ¶
type VMUserCustomValidator struct{}
+kubebuilder:webhook:path=/validate-operator-victoriametrics-com-v1beta1-vmuser,mutating=false,failurePolicy=fail,sideEffects=None,groups=operator.victoriametrics.com,resources=vmusers,verbs=create;update,versions=v1beta1,name=vvmuser-v1beta1.kb.io,admissionReviewVersions=v1
func (*VMUserCustomValidator) ValidateCreate ¶
func (*VMUserCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*VMUserCustomValidator) ValidateDelete ¶
func (*VMUserCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type
func (*VMUserCustomValidator) ValidateUpdate ¶
func (*VMUserCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type
Source Files
¶
- vlogs_webhook.go
- vmagent_webhook.go
- vmalert_webhook.go
- vmalertmanager_webhook.go
- vmalertmanagerconfig_webhook.go
- vmauth_webhook.go
- vmcluster_webhook.go
- vmnodescrape_webhook.go
- vmpodscrape_webhook.go
- vmprobe_webhook.go
- vmrule_webhook.go
- vmscrapeconfig_webhook.go
- vmservicescrape_webhook.go
- vmsingle_webhook.go
- vmstaticscrape_webhook.go
- vmuser_webhook.go