v1alpha1

package
v0.0.0-...-58510ec Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupBIOSSettingsWebhookWithManager

func SetupBIOSSettingsWebhookWithManager(mgr ctrl.Manager) error

SetupBIOSSettingsWebhookWithManager registers the webhook for BIOSSettings in the manager.

func SetupBIOSVersionWebhookWithManager

func SetupBIOSVersionWebhookWithManager(mgr ctrl.Manager) error

SetupBIOSVersionWebhookWithManager registers the webhook for BIOSVersion in the manager.

func SetupBMCSettingsWebhookWithManager

func SetupBMCSettingsWebhookWithManager(mgr ctrl.Manager) error

SetupBMCSettingsWebhookWithManager registers the webhook for BMCSettings in the manager.

func SetupBMCVersionWebhookWithManager

func SetupBMCVersionWebhookWithManager(mgr ctrl.Manager) error

SetupBMCVersionWebhookWithManager registers the webhook for BMCVersion in the manager.

func SetupEndpointWebhookWithManager

func SetupEndpointWebhookWithManager(mgr ctrl.Manager) error

SetupEndpointWebhookWithManager registers the webhook for Endpoint in the manager.

func SetupServerWebhookWithManager

func SetupServerWebhookWithManager(mgr ctrl.Manager) error

SetupServerWebhookWithManager registers the webhook for Server in the manager.

func ShouldAllowForceDeleteInProgress

func ShouldAllowForceDeleteInProgress(obj client.Object) bool

func ShouldAllowForceUpdateInProgress

func ShouldAllowForceUpdateInProgress(obj client.Object) bool

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

func ValidateMACAddressUpdate

func ValidateMACAddressUpdate(ctx context.Context, c client.Client, updatedEndpoint *metalv1alpha1.Endpoint, path *field.Path) field.ErrorList

Types

type BIOSSettingsCustomValidator

type BIOSSettingsCustomValidator struct {
	Client client.Client
}

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

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

func (*BIOSSettingsCustomValidator) ValidateDelete

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

type BIOSVersionCustomValidator struct {
	Client client.Client
}

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

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

func (*BIOSVersionCustomValidator) ValidateDelete

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

type BMCSettingsCustomValidator struct {
	Client client.Client
}

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

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

func (*BMCSettingsCustomValidator) ValidateDelete

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

type BMCVersionCustomValidator struct {
	Client client.Client
}

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

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

func (*BMCVersionCustomValidator) ValidateDelete

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

type EndpointCustomValidator struct {
	Client client.Client
}

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

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

func (*EndpointCustomValidator) ValidateDelete

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

type ServerCustomValidator struct {
	Client client.Client
}

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.

Jump to

Keyboard shortcuts

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