Documentation
¶
Index ¶
- func SetupClusterWebhookWithManager(mgr ctrl.Manager, log logrus.FieldLogger) error
- func SetupComponentWebhookWithManager(mgr ctrl.Manager, log logrus.FieldLogger, chartLoader helm.ChartLoader, ...) error
- type ClusterCustomDefaulter
- type ClusterCustomValidator
- func (v *ClusterCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ClusterCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ClusterCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ComponentCustomDefaulter
- type ComponentCustomValidator
- func (v *ComponentCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ComponentCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ComponentCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
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.
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 ¶
func (v *ClusterCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Cluster.
func (*ClusterCustomValidator) ValidateDelete ¶
func (v *ClusterCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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.
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 ¶
func (v *ComponentCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Component.
func (*ComponentCustomValidator) ValidateDelete ¶
func (v *ComponentCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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.