v1alpha1

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 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.

func SetupLogExportWebhookWithManager added in v0.75.0

func SetupLogExportWebhookWithManager(mgr manager.Manager) error

SetupLogExportWebhookWithManager registers the webhook for LogExport.

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.

type LogExportValidator added in v0.75.0

type LogExportValidator struct{}

LogExportValidator validates LogExport resources on create/update.

Rejecting a bad selector here rather than at reconcile time is deliberate: the exporter is shared by the whole installation and exits on a bad config, so one customer's mistake would otherwise stop every export on it.

+kubebuilder:object:generate=false

func (*LogExportValidator) ValidateCreate added in v0.75.0

ValidateCreate enforces business rules beyond what kubebuilder markers can express.

func (*LogExportValidator) ValidateDelete added in v0.75.0

ValidateDelete is a no-op.

func (*LogExportValidator) ValidateUpdate added in v0.75.0

func (v *LogExportValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *observabilityv1alpha1.LogExport) (admission.Warnings, error)

ValidateUpdate applies the same rules as create.

Jump to

Keyboard shortcuts

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