Documentation
¶
Index ¶
- func SetupClusterSharedVolumeWebhookWithManager(mgr ctrl.Manager) error
- func SetupSharedVolumeWebhookWithManager(mgr ctrl.Manager) error
- type ClusterSharedVolumeCustomValidator
- func (v *ClusterSharedVolumeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ClusterSharedVolumeCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ClusterSharedVolumeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type SharedVolumeCustomValidator
- func (v *SharedVolumeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SharedVolumeCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SharedVolumeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupClusterSharedVolumeWebhookWithManager ¶
SetupClusterSharedVolumeWebhookWithManager registers the ClusterSharedVolume webhook with the manager
func SetupSharedVolumeWebhookWithManager ¶
SetupSharedVolumeWebhookWithManager registers the SharedVolume webhook with the manager
Types ¶
type ClusterSharedVolumeCustomValidator ¶
type ClusterSharedVolumeCustomValidator struct{}
ClusterSharedVolumeCustomValidator struct is responsible for validating the ClusterSharedVolume 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. +kubebuilder:object:generate=false
func (*ClusterSharedVolumeCustomValidator) ValidateCreate ¶
func (v *ClusterSharedVolumeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ClusterSharedVolume.
func (*ClusterSharedVolumeCustomValidator) ValidateDelete ¶
func (v *ClusterSharedVolumeCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type ClusterSharedVolume.
func (*ClusterSharedVolumeCustomValidator) ValidateUpdate ¶
func (v *ClusterSharedVolumeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ClusterSharedVolume.
type SharedVolumeCustomValidator ¶
type SharedVolumeCustomValidator struct{}
SharedVolumeCustomValidator struct is responsible for validating the SharedVolume 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. +kubebuilder:object:generate=false
func (*SharedVolumeCustomValidator) ValidateCreate ¶
func (v *SharedVolumeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type SharedVolume.
func (*SharedVolumeCustomValidator) ValidateDelete ¶
func (v *SharedVolumeCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type SharedVolume.
func (*SharedVolumeCustomValidator) ValidateUpdate ¶
func (v *SharedVolumeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type SharedVolume.