v1alpha1

package
v0.68.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAgentCredentialWebhookWithManager added in v0.68.0

func SetupAgentCredentialWebhookWithManager(mgr manager.Manager) error

SetupAgentCredentialWebhookWithManager registers the webhook for AgentCredential.

func SetupGrafanaOrganizationWebhookWithManager

func SetupGrafanaOrganizationWebhookWithManager(mgr manager.Manager) error

SetupGrafanaOrganizationWebhookWithManager registers the webhook for GrafanaOrganization in the manager.

Types

type AgentCredentialValidator added in v0.68.0

type AgentCredentialValidator struct {
	Client client.Reader
}

AgentCredentialValidator validates AgentCredential resources on create/update.

+kubebuilder:object:generate=false

func (*AgentCredentialValidator) ValidateCreate added in v0.68.0

ValidateCreate enforces business rules beyond what kubebuilder markers can express.

func (*AgentCredentialValidator) ValidateDelete added in v0.68.0

ValidateDelete is a no-op.

func (*AgentCredentialValidator) ValidateUpdate added in v0.68.0

ValidateUpdate enforces immutability of spec fields and uniqueness.

type GrafanaOrganizationValidator

type GrafanaOrganizationValidator struct{}

GrafanaOrganizationValidator struct is responsible for validating the GrafanaOrganization resource when it is created, updated, or deleted.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

+kubebuilder:object:generate=false

func (*GrafanaOrganizationValidator) ValidateCreate

ValidateCreate implements admission.Validator so a webhook will be registered for the type GrafanaOrganization.

func (*GrafanaOrganizationValidator) ValidateDelete

ValidateDelete implements admission.Validator so a webhook will be registered for the type GrafanaOrganization.

func (*GrafanaOrganizationValidator) ValidateUpdate

ValidateUpdate implements admission.Validator so a webhook will be registered for the type GrafanaOrganization.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL