Documentation ¶
Index ¶
- type StorageOSClusterWebhook
- func (wh *StorageOSClusterWebhook) Default() []tkadmission.DefaultFunc
- func (wh *StorageOSClusterWebhook) GetNewObject() client.Object
- func (wh *StorageOSClusterWebhook) Name() string
- func (wh *StorageOSClusterWebhook) RequireDefaulting(obj client.Object) bool
- func (wh *StorageOSClusterWebhook) RequireValidating(obj client.Object) bool
- func (wh *StorageOSClusterWebhook) SetupWithManager(mgr manager.Manager) error
- func (wh *StorageOSClusterWebhook) ValidateCreate() []tkadmission.ValidateCreateFunc
- func (wh *StorageOSClusterWebhook) ValidateDelete() []tkadmission.ValidateDeleteFunc
- func (wh *StorageOSClusterWebhook) ValidateUpdate() []tkadmission.ValidateUpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageOSClusterWebhook ¶
type StorageOSClusterWebhook struct { CtrlName string // contains filtered or unexported fields }
StorageOSClusterWebhook is the webhook controller for StorageOSCluster.
func NewStorageOSClusterWebhook ¶
func NewStorageOSClusterWebhook(cl client.Client, scheme *runtime.Scheme) (*StorageOSClusterWebhook, error)
NewStorageOSClusterWebhook constructs a webhook controller and returns it.
func (*StorageOSClusterWebhook) Default ¶
func (wh *StorageOSClusterWebhook) Default() []tkadmission.DefaultFunc
Default implements the admission webhook controller interface. It returns a list of defaulter functions.
func (*StorageOSClusterWebhook) GetNewObject ¶
func (wh *StorageOSClusterWebhook) GetNewObject() client.Object
GetNewObject implements the admission webhook controller interface. It returns an instance of the target object.
func (*StorageOSClusterWebhook) Name ¶
func (wh *StorageOSClusterWebhook) Name() string
Name implements the admission webhook controller interface. It returns the webhook controller's name.
func (*StorageOSClusterWebhook) RequireDefaulting ¶
func (wh *StorageOSClusterWebhook) RequireDefaulting(obj client.Object) bool
RequireDefaulting implements the admission webhook controller interface. It is used to toggle the defaulter webhook.
func (*StorageOSClusterWebhook) RequireValidating ¶
func (wh *StorageOSClusterWebhook) RequireValidating(obj client.Object) bool
RequireValidating implements the admission webhook controller interface. It is used to toggle the validator webhook .
func (*StorageOSClusterWebhook) SetupWithManager ¶
func (wh *StorageOSClusterWebhook) SetupWithManager(mgr manager.Manager) error
SetupWithManager builds the webhook controller, registering the webhook endpoints with the webhook server in the controller manager.
func (*StorageOSClusterWebhook) ValidateCreate ¶
func (wh *StorageOSClusterWebhook) ValidateCreate() []tkadmission.ValidateCreateFunc
ValidateCreate implements the admission webhook controller interface. It returns a list of validate on create functions.
func (*StorageOSClusterWebhook) ValidateDelete ¶
func (wh *StorageOSClusterWebhook) ValidateDelete() []tkadmission.ValidateDeleteFunc
ValidateDelete implements the admission webhook controller interface. It returns a list of validate on delete functions.
func (*StorageOSClusterWebhook) ValidateUpdate ¶
func (wh *StorageOSClusterWebhook) ValidateUpdate() []tkadmission.ValidateUpdateFunc
ValidateUpdate implements the admission webhook controller interface. It returns a list of validate on update functions.