Documentation
¶
Index ¶
- func SetupBMCSecretWebhookWithManager(mgr ctrl.Manager) error
- func SetupEndpointWebhookWithManager(mgr ctrl.Manager) error
- func SetupServerWebhookWithManager(mgr ctrl.Manager) error
- 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, endpoint *metalv1alpha1.Endpoint, ...) field.ErrorList
- type BMCSecretCustomValidator
- func (v *BMCSecretCustomValidator) ValidateCreate(_ context.Context, obj *metalv1alpha1.BMCSecret) (admission.Warnings, error)
- func (v *BMCSecretCustomValidator) ValidateDelete(_ context.Context, obj *metalv1alpha1.BMCSecret) (admission.Warnings, error)
- func (v *BMCSecretCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *metalv1alpha1.BMCSecret) (admission.Warnings, error)
- type EndpointCustomValidator
- func (v *EndpointCustomValidator) ValidateCreate(ctx context.Context, obj *metalv1alpha1.Endpoint) (admission.Warnings, error)
- func (v *EndpointCustomValidator) ValidateDelete(ctx context.Context, obj *metalv1alpha1.Endpoint) (admission.Warnings, error)
- func (v *EndpointCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *metalv1alpha1.Endpoint) (admission.Warnings, error)
- type ServerCustomValidator
- func (v *ServerCustomValidator) ValidateCreate(ctx context.Context, obj *metalv1alpha1.Server) (admission.Warnings, error)
- func (v *ServerCustomValidator) ValidateDelete(ctx context.Context, obj *metalv1alpha1.Server) (admission.Warnings, error)
- func (v *ServerCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *metalv1alpha1.Server) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupBMCSecretWebhookWithManager ¶ added in v0.3.0
SetupBMCSecretWebhookWithManager registers the webhook for BMCSecret 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 BMCSecretCustomValidator ¶ added in v0.3.0
func (*BMCSecretCustomValidator) ValidateCreate ¶ added in v0.3.0
func (v *BMCSecretCustomValidator) ValidateCreate(_ context.Context, obj *metalv1alpha1.BMCSecret) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type BMCSecret.
func (*BMCSecretCustomValidator) ValidateDelete ¶ added in v0.3.0
func (v *BMCSecretCustomValidator) ValidateDelete(_ context.Context, obj *metalv1alpha1.BMCSecret) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type BMCSecret.
func (*BMCSecretCustomValidator) ValidateUpdate ¶ added in v0.3.0
func (v *BMCSecretCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *metalv1alpha1.BMCSecret) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type BMCSecret.
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 *metalv1alpha1.Endpoint) (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 *metalv1alpha1.Endpoint) (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 *metalv1alpha1.Endpoint) (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 *metalv1alpha1.Server) (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 *metalv1alpha1.Server) (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 *metalv1alpha1.Server) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Server.