v1alpha1

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupClusterWebhookWithManager

func SetupClusterWebhookWithManager(mgr ctrl.Manager, log logrus.FieldLogger) error

SetupClusterWebhookWithManager registers the webhook for Cluster in the manager.

func SetupComponentWebhookWithManager

func SetupComponentWebhookWithManager(mgr ctrl.Manager, log logrus.FieldLogger, chartLoader helm.ChartLoader, helmClient helm.Client) error

SetupComponentWebhookWithManager registers the webhook for Component in the manager.

Types

type ClusterCustomDefaulter

type ClusterCustomDefaulter struct {
	// contains filtered or unexported fields
}

ClusterCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Cluster when those are created or updated.

func (*ClusterCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Cluster.

type ClusterCustomValidator

type ClusterCustomValidator struct {
	// contains filtered or unexported fields
}

ClusterCustomValidator struct is responsible for validating the Cluster resource when it is created, updated, or deleted.

func (*ClusterCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Cluster.

func (*ClusterCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Cluster.

func (*ClusterCustomValidator) ValidateUpdate

func (v *ClusterCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Cluster.

type ComponentCustomDefaulter

type ComponentCustomDefaulter struct {
	// contains filtered or unexported fields
}

ComponentCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Component when those are created or updated.

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

func (*ComponentCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Component.

type ComponentCustomValidator

type ComponentCustomValidator struct {
	// contains filtered or unexported fields
}

ComponentCustomValidator struct is responsible for validating the Component 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.

func (*ComponentCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Component.

func (*ComponentCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Component.

func (*ComponentCustomValidator) ValidateUpdate

func (v *ComponentCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Component.

Jump to

Keyboard shortcuts

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