Documentation
¶
Index ¶
- func SetupBIOSSettingsWebhookWithManager(mgr ctrl.Manager) error
- func SetupBIOSVersionWebhookWithManager(mgr ctrl.Manager) error
- func SetupBMCSettingsWebhookWithManager(mgr ctrl.Manager) error
- func SetupBMCVersionWebhookWithManager(mgr ctrl.Manager) error
- func SetupEndpointWebhookWithManager(mgr ctrl.Manager) error
- func SetupServerWebhookWithManager(mgr ctrl.Manager) error
- func ShouldAllowForceDeleteInProgress(obj client.Object) bool
- func ShouldAllowForceUpdateInProgress(obj client.Object) bool
- func ValidateMACAddressCreate(ctx context.Context, c client.Client, spec metalv1alpha1.EndpointSpec, ...) field.ErrorList
- func ValidateMACAddressUpdate(ctx context.Context, c client.Client, updatedEndpoint *metalv1alpha1.Endpoint, ...) field.ErrorList
- type BIOSSettingsCustomValidator
- func (v *BIOSSettingsCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BIOSSettingsCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BIOSSettingsCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type BIOSVersionCustomValidator
- func (v *BIOSVersionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BIOSVersionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BIOSVersionCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type BMCSettingsCustomValidator
- func (v *BMCSettingsCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BMCSettingsCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BMCSettingsCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type BMCVersionCustomValidator
- func (v *BMCVersionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BMCVersionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BMCVersionCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type EndpointCustomValidator
- func (v *EndpointCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *EndpointCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *EndpointCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ServerCustomValidator
- func (v *ServerCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ServerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ServerCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupBIOSSettingsWebhookWithManager ¶
SetupBIOSSettingsWebhookWithManager registers the webhook for BIOSSettings in the manager.
func SetupBIOSVersionWebhookWithManager ¶
SetupBIOSVersionWebhookWithManager registers the webhook for BIOSVersion in the manager.
func SetupBMCSettingsWebhookWithManager ¶
SetupBMCSettingsWebhookWithManager registers the webhook for BMCSettings in the manager.
func SetupBMCVersionWebhookWithManager ¶
SetupBMCVersionWebhookWithManager registers the webhook for BMCVersion in the manager.
func SetupEndpointWebhookWithManager ¶
SetupEndpointWebhookWithManager registers the webhook for Endpoint in the manager.
func SetupServerWebhookWithManager ¶
SetupServerWebhookWithManager registers the webhook for Server in the manager.
func ShouldAllowForceUpdateInProgress ¶
ShouldAllowForceUpdateInProgress checks if the object should force allow update.
func ValidateMACAddressCreate ¶
func ValidateMACAddressCreate(ctx context.Context, c client.Client, spec metalv1alpha1.EndpointSpec, path *field.Path) field.ErrorList
Types ¶
type BIOSSettingsCustomValidator ¶
BIOSSettingsCustomValidator struct is responsible for validating the BIOSSettings 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 (*BIOSSettingsCustomValidator) ValidateCreate ¶
func (v *BIOSSettingsCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type BIOSSettings.
func (*BIOSSettingsCustomValidator) ValidateDelete ¶
func (v *BIOSSettingsCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type BIOSSettings.
func (*BIOSSettingsCustomValidator) ValidateUpdate ¶
func (v *BIOSSettingsCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type BIOSSettings.
type BIOSVersionCustomValidator ¶
BIOSVersionCustomValidator struct is responsible for validating the BIOSVersion 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 (*BIOSVersionCustomValidator) ValidateCreate ¶
func (v *BIOSVersionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type BIOSVersion.
func (*BIOSVersionCustomValidator) ValidateDelete ¶
func (v *BIOSVersionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type BIOSVersion.
func (*BIOSVersionCustomValidator) ValidateUpdate ¶
func (v *BIOSVersionCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type BIOSVersion.
type BMCSettingsCustomValidator ¶
BMCSettingsCustomValidator struct is responsible for validating the BMCSettings 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 (*BMCSettingsCustomValidator) ValidateCreate ¶
func (v *BMCSettingsCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type BMCSettings.
func (*BMCSettingsCustomValidator) ValidateDelete ¶
func (v *BMCSettingsCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type BMCSettings.
func (*BMCSettingsCustomValidator) ValidateUpdate ¶
func (v *BMCSettingsCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type BMCSettings.
type BMCVersionCustomValidator ¶
BMCVersionCustomValidator struct is responsible for validating the BMCVersion 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 (*BMCVersionCustomValidator) ValidateCreate ¶
func (v *BMCVersionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type BMCVersion.
func (*BMCVersionCustomValidator) ValidateDelete ¶
func (v *BMCVersionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type BMCVersion.
func (*BMCVersionCustomValidator) ValidateUpdate ¶
func (v *BMCVersionCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type BMCVersion.
type EndpointCustomValidator ¶
EndpointCustomValidator struct is responsible for validating the Endpoint 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 (*EndpointCustomValidator) ValidateCreate ¶
func (v *EndpointCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Endpoint.
func (*EndpointCustomValidator) ValidateDelete ¶
func (v *EndpointCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Endpoint.
func (*EndpointCustomValidator) ValidateUpdate ¶
func (v *EndpointCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Endpoint.
type ServerCustomValidator ¶
ServerCustomValidator struct is responsible for validating the Server resource when it is created, updated, or deleted.
func (*ServerCustomValidator) ValidateCreate ¶
func (v *ServerCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Server.
func (*ServerCustomValidator) ValidateDelete ¶
func (v *ServerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Server.
func (*ServerCustomValidator) ValidateUpdate ¶
func (v *ServerCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Server.