Documentation
¶
Index ¶
- func SetupCloudscaleClusterWebhookWithManager(mgr ctrl.Manager, regionInfo *cloudscale.RegionInfo) error
- func SetupCloudscaleMachineTemplateWebhookWithManager(mgr ctrl.Manager, flavorInfo *cloudscale.FlavorInfo) error
- func SetupCloudscaleMachineWebhookWithManager(mgr ctrl.Manager, flavorInfo *cloudscale.FlavorInfo) error
- type CloudscaleClusterCustomDefaulter
- type CloudscaleClusterCustomValidator
- func (v *CloudscaleClusterCustomValidator) ValidateCreate(_ context.Context, cluster *infrastructurev1beta2.CloudscaleCluster) (admission.Warnings, error)
- func (v *CloudscaleClusterCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1beta2.CloudscaleCluster) (admission.Warnings, error)
- func (v *CloudscaleClusterCustomValidator) ValidateUpdate(_ context.Context, ...) (admission.Warnings, error)
- type CloudscaleMachineCustomDefaulter
- type CloudscaleMachineCustomValidator
- func (v *CloudscaleMachineCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachine) (admission.Warnings, error)
- func (v *CloudscaleMachineCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachine) (admission.Warnings, error)
- func (v *CloudscaleMachineCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1beta2.CloudscaleMachine) (admission.Warnings, error)
- type CloudscaleMachineTemplateCustomDefaulter
- type CloudscaleMachineTemplateCustomValidator
- func (v *CloudscaleMachineTemplateCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachineTemplate) (admission.Warnings, error)
- func (v *CloudscaleMachineTemplateCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachineTemplate) (admission.Warnings, error)
- func (v *CloudscaleMachineTemplateCustomValidator) ValidateUpdate(_ context.Context, ...) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupCloudscaleClusterWebhookWithManager ¶
func SetupCloudscaleClusterWebhookWithManager(mgr ctrl.Manager, regionInfo *cloudscale.RegionInfo) error
SetupCloudscaleClusterWebhookWithManager registers the webhook for CloudscaleCluster in the manager.
func SetupCloudscaleMachineTemplateWebhookWithManager ¶
func SetupCloudscaleMachineTemplateWebhookWithManager(mgr ctrl.Manager, flavorInfo *cloudscale.FlavorInfo) error
SetupCloudscaleMachineTemplateWebhookWithManager registers the webhook for CloudscaleMachineTemplate in the manager.
func SetupCloudscaleMachineWebhookWithManager ¶
func SetupCloudscaleMachineWebhookWithManager(mgr ctrl.Manager, flavorInfo *cloudscale.FlavorInfo) error
SetupCloudscaleMachineWebhookWithManager registers the webhook for CloudscaleMachine in the manager.
Types ¶
type CloudscaleClusterCustomDefaulter ¶
type CloudscaleClusterCustomDefaulter struct {
RegionInfo *cloudscale.RegionInfo
}
CloudscaleClusterCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind CloudscaleCluster 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 (*CloudscaleClusterCustomDefaulter) Default ¶
func (d *CloudscaleClusterCustomDefaulter) Default(_ context.Context, cluster *infrastructurev1beta2.CloudscaleCluster) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind CloudscaleCluster.
type CloudscaleClusterCustomValidator ¶
type CloudscaleClusterCustomValidator struct {
RegionInfo *cloudscale.RegionInfo
}
CloudscaleClusterCustomValidator struct is responsible for validating the CloudscaleCluster resource when it is created or updated.
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 (*CloudscaleClusterCustomValidator) ValidateCreate ¶
func (v *CloudscaleClusterCustomValidator) ValidateCreate(_ context.Context, cluster *infrastructurev1beta2.CloudscaleCluster) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleCluster.
func (*CloudscaleClusterCustomValidator) ValidateDelete ¶
func (v *CloudscaleClusterCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1beta2.CloudscaleCluster) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleCluster.
func (*CloudscaleClusterCustomValidator) ValidateUpdate ¶
func (v *CloudscaleClusterCustomValidator) ValidateUpdate(_ context.Context, oldCluster, newCluster *infrastructurev1beta2.CloudscaleCluster) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleCluster.
type CloudscaleMachineCustomDefaulter ¶
type CloudscaleMachineCustomDefaulter struct{}
CloudscaleMachineCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind CloudscaleMachine 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 (*CloudscaleMachineCustomDefaulter) Default ¶
func (d *CloudscaleMachineCustomDefaulter) Default(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachine) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind CloudscaleMachine.
type CloudscaleMachineCustomValidator ¶
type CloudscaleMachineCustomValidator struct {
FlavorInfo *cloudscale.FlavorInfo
}
CloudscaleMachineCustomValidator struct is responsible for validating the CloudscaleMachine 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 (*CloudscaleMachineCustomValidator) ValidateCreate ¶
func (v *CloudscaleMachineCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachine) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleMachine.
func (*CloudscaleMachineCustomValidator) ValidateDelete ¶
func (v *CloudscaleMachineCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachine) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleMachine.
func (*CloudscaleMachineCustomValidator) ValidateUpdate ¶
func (v *CloudscaleMachineCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1beta2.CloudscaleMachine) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleMachine.
type CloudscaleMachineTemplateCustomDefaulter ¶
type CloudscaleMachineTemplateCustomDefaulter struct{}
CloudscaleMachineTemplateCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind CloudscaleMachineTemplate 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 (*CloudscaleMachineTemplateCustomDefaulter) Default ¶
func (d *CloudscaleMachineTemplateCustomDefaulter) Default(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachineTemplate) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind CloudscaleMachineTemplate.
type CloudscaleMachineTemplateCustomValidator ¶
type CloudscaleMachineTemplateCustomValidator struct {
FlavorInfo *cloudscale.FlavorInfo
}
CloudscaleMachineTemplateCustomValidator struct is responsible for validating the CloudscaleMachineTemplate 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 (*CloudscaleMachineTemplateCustomValidator) ValidateCreate ¶
func (v *CloudscaleMachineTemplateCustomValidator) ValidateCreate(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachineTemplate) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleMachineTemplate.
func (*CloudscaleMachineTemplateCustomValidator) ValidateDelete ¶
func (v *CloudscaleMachineTemplateCustomValidator) ValidateDelete(_ context.Context, obj *infrastructurev1beta2.CloudscaleMachineTemplate) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleMachineTemplate.
func (*CloudscaleMachineTemplateCustomValidator) ValidateUpdate ¶
func (v *CloudscaleMachineTemplateCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *infrastructurev1beta2.CloudscaleMachineTemplate) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type CloudscaleMachineTemplate.