Documentation ¶
Index ¶
- func ValidateUnitedDeploymentUpdate(unitedDeployment, oldUnitedDeployment *unitv1alpha1.UnitedDeployment) field.ErrorList
- type UnitedDeploymentHandler
- func (webhook *UnitedDeploymentHandler) Default(ctx context.Context, obj runtime.Object) error
- func (webhook *UnitedDeploymentHandler) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *UnitedDeploymentHandler) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (webhook *UnitedDeploymentHandler) ValidateDelete(_ context.Context, obj runtime.Object) error
- func (webhook *UnitedDeploymentHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateUnitedDeploymentUpdate ¶
func ValidateUnitedDeploymentUpdate(unitedDeployment, oldUnitedDeployment *unitv1alpha1.UnitedDeployment) field.ErrorList
ValidateUnitedDeploymentUpdate tests if required fields in the UnitedDeployment are set.
Types ¶
type UnitedDeploymentHandler ¶
Cluster implements a validating and defaulting webhook for Cluster.
func (*UnitedDeploymentHandler) SetupWebhookWithManager ¶
func (webhook *UnitedDeploymentHandler) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up Cluster webhooks.
func (*UnitedDeploymentHandler) ValidateCreate ¶
func (webhook *UnitedDeploymentHandler) ValidateCreate(ctx context.Context, obj runtime.Object) error
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type.
func (*UnitedDeploymentHandler) ValidateDelete ¶
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.
func (*UnitedDeploymentHandler) ValidateUpdate ¶
func (webhook *UnitedDeploymentHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type.
Click to show internal directories.
Click to hide internal directories.