Documentation
¶
Index ¶
- func SetupStackitClusterTemplateWebhookWithManager(mgr ctrl.Manager) error
- func SetupStackitClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupStackitMachineTemplateWebhookWithManager(mgr ctrl.Manager) error
- func SetupStackitMachineWebhookWithManager(mgr ctrl.Manager) error
- type StackitClusterCustomDefaulter
- type StackitClusterCustomValidator
- func (v *StackitClusterCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitCluster) (admission.Warnings, error)
- func (v *StackitClusterCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitCluster) (admission.Warnings, error)
- func (v *StackitClusterCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1alpha1.StackitCluster) (admission.Warnings, error)
- type StackitClusterTemplateCustomDefaulter
- type StackitClusterTemplateCustomValidator
- func (v *StackitClusterTemplateCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitClusterTemplate) (admission.Warnings, error)
- func (v *StackitClusterTemplateCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitClusterTemplate) (admission.Warnings, error)
- func (v *StackitClusterTemplateCustomValidator) ValidateUpdate(_ context.Context, ...) (admission.Warnings, error)
- type StackitMachineCustomDefaulter
- type StackitMachineCustomValidator
- func (v *StackitMachineCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitMachine) (admission.Warnings, error)
- func (v *StackitMachineCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitMachine) (admission.Warnings, error)
- func (v *StackitMachineCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1alpha1.StackitMachine) (admission.Warnings, error)
- type StackitMachineTemplateCustomDefaulter
- type StackitMachineTemplateCustomValidator
- func (v *StackitMachineTemplateCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitMachineTemplate) (admission.Warnings, error)
- func (v *StackitMachineTemplateCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitMachineTemplate) (admission.Warnings, error)
- func (v *StackitMachineTemplateCustomValidator) ValidateUpdate(_ context.Context, ...) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupStackitClusterTemplateWebhookWithManager ¶
SetupStackitClusterTemplateWebhookWithManager registers the webhook for StackitClusterTemplate in the manager.
func SetupStackitClusterWebhookWithManager ¶
SetupStackitClusterWebhookWithManager registers the webhook for StackitCluster in the manager.
func SetupStackitMachineTemplateWebhookWithManager ¶
SetupStackitMachineTemplateWebhookWithManager registers the webhook for StackitMachineTemplate in the manager.
func SetupStackitMachineWebhookWithManager ¶
SetupStackitMachineWebhookWithManager registers the webhook for StackitMachine in the manager.
Types ¶
type StackitClusterCustomDefaulter ¶
type StackitClusterCustomDefaulter struct{}
StackitClusterCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind StackitCluster 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 (*StackitClusterCustomDefaulter) Default ¶
func (d *StackitClusterCustomDefaulter) Default(_ context.Context, obj *infrastructurev1alpha1.StackitCluster) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind StackitCluster.
type StackitClusterCustomValidator ¶
type StackitClusterCustomValidator struct{}
StackitClusterCustomValidator struct is responsible for validating the StackitCluster 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 (*StackitClusterCustomValidator) ValidateCreate ¶
func (v *StackitClusterCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitCluster) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type StackitCluster.
func (*StackitClusterCustomValidator) ValidateDelete ¶
func (v *StackitClusterCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitCluster) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type StackitCluster.
func (*StackitClusterCustomValidator) ValidateUpdate ¶
func (v *StackitClusterCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1alpha1.StackitCluster) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type StackitCluster.
type StackitClusterTemplateCustomDefaulter ¶
type StackitClusterTemplateCustomDefaulter struct{}
StackitClusterTemplateCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind StackitClusterTemplate 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 (*StackitClusterTemplateCustomDefaulter) Default ¶
func (d *StackitClusterTemplateCustomDefaulter) Default(_ context.Context, obj *infrastructurev1alpha1.StackitClusterTemplate) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind StackitClusterTemplate.
type StackitClusterTemplateCustomValidator ¶
type StackitClusterTemplateCustomValidator struct{}
StackitClusterTemplateCustomValidator struct is responsible for validating the StackitClusterTemplate 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 (*StackitClusterTemplateCustomValidator) ValidateCreate ¶
func (v *StackitClusterTemplateCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitClusterTemplate) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type StackitClusterTemplate.
func (*StackitClusterTemplateCustomValidator) ValidateDelete ¶
func (v *StackitClusterTemplateCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitClusterTemplate) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type StackitClusterTemplate.
func (*StackitClusterTemplateCustomValidator) ValidateUpdate ¶
func (v *StackitClusterTemplateCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1alpha1.StackitClusterTemplate) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type StackitClusterTemplate.
type StackitMachineCustomDefaulter ¶
type StackitMachineCustomDefaulter struct{}
StackitMachineCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind StackitMachine 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 (*StackitMachineCustomDefaulter) Default ¶
func (d *StackitMachineCustomDefaulter) Default(_ context.Context, obj *infrastructurev1alpha1.StackitMachine) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind StackitMachine.
type StackitMachineCustomValidator ¶
type StackitMachineCustomValidator struct{}
StackitMachineCustomValidator struct is responsible for validating the StackitMachine 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 (*StackitMachineCustomValidator) ValidateCreate ¶
func (v *StackitMachineCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitMachine) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type StackitMachine.
func (*StackitMachineCustomValidator) ValidateDelete ¶
func (v *StackitMachineCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitMachine) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type StackitMachine.
func (*StackitMachineCustomValidator) ValidateUpdate ¶
func (v *StackitMachineCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1alpha1.StackitMachine) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type StackitMachine.
type StackitMachineTemplateCustomDefaulter ¶
type StackitMachineTemplateCustomDefaulter struct{}
StackitMachineTemplateCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind StackitMachineTemplate 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 (*StackitMachineTemplateCustomDefaulter) Default ¶
func (d *StackitMachineTemplateCustomDefaulter) Default(_ context.Context, obj *infrastructurev1alpha1.StackitMachineTemplate) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind StackitMachineTemplate.
type StackitMachineTemplateCustomValidator ¶
type StackitMachineTemplateCustomValidator struct{}
StackitMachineTemplateCustomValidator struct is responsible for validating the StackitMachineTemplate 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 (*StackitMachineTemplateCustomValidator) ValidateCreate ¶
func (v *StackitMachineTemplateCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1alpha1.StackitMachineTemplate) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type StackitMachineTemplate.
func (*StackitMachineTemplateCustomValidator) ValidateDelete ¶
func (v *StackitMachineTemplateCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1alpha1.StackitMachineTemplate) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type StackitMachineTemplate.
func (*StackitMachineTemplateCustomValidator) ValidateUpdate ¶
func (v *StackitMachineTemplateCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1alpha1.StackitMachineTemplate) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type StackitMachineTemplate.