webhook

package
Version: v0.0.0-...-9672418 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

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

ValidateCreate implements the admission webhook controller interface. It returns a list of validate on create functions.

func (*StorageOSClusterWebhook) ValidateDelete

ValidateDelete implements the admission webhook controller interface. It returns a list of validate on delete functions.

func (*StorageOSClusterWebhook) ValidateUpdate

ValidateUpdate implements the admission webhook controller interface. It returns a list of validate on update functions.

Source Files

Jump to

Keyboard shortcuts

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