Documentation
¶
Index ¶
- func SetupGrafanaOrganizationWebhookWithManager(mgr ctrl.Manager) error
- type GrafanaOrganizationValidator
- func (v *GrafanaOrganizationValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *GrafanaOrganizationValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *GrafanaOrganizationValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupGrafanaOrganizationWebhookWithManager ¶
SetupGrafanaOrganizationWebhookWithManager registers the webhook for GrafanaOrganization in the manager.
Types ¶
type GrafanaOrganizationValidator ¶
type GrafanaOrganizationValidator struct{}
GrafanaOrganizationValidator struct is responsible for validating the GrafanaOrganization resource when it is created, updated, or deleted.
+kubebuilder:object:generate=false
func (*GrafanaOrganizationValidator) ValidateCreate ¶
func (v *GrafanaOrganizationValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type GrafanaOrganization.
func (*GrafanaOrganizationValidator) ValidateDelete ¶
func (v *GrafanaOrganizationValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type GrafanaOrganization.
func (*GrafanaOrganizationValidator) ValidateUpdate ¶
func (v *GrafanaOrganizationValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type GrafanaOrganization.
Click to show internal directories.
Click to hide internal directories.