v1alpha1

package
v0.0.230 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupClusterSharedVolumeWebhookWithManager

func SetupClusterSharedVolumeWebhookWithManager(mgr ctrl.Manager) error

SetupClusterSharedVolumeWebhookWithManager registers the ClusterSharedVolume webhook with the manager

func SetupSharedVolumeWebhookWithManager

func SetupSharedVolumeWebhookWithManager(mgr ctrl.Manager) error

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

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

func (*ClusterSharedVolumeCustomValidator) ValidateDelete

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

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

func (*SharedVolumeCustomValidator) ValidateDelete

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.

Jump to

Keyboard shortcuts

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