Documentation ¶
Index ¶
- Constants
- type NodeHandler
- func (webhook *NodeHandler) Default(ctx context.Context, obj runtime.Object) error
- func (webhook *NodeHandler) SetupWebhookWithManager(mgr ctrl.Manager) (string, string, error)
- func (webhook *NodeHandler) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *NodeHandler) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *NodeHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
View Source
const (
WebhookName = "node"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeHandler ¶
NodeHandler implements a validating and defaulting webhook for Cluster.
func (*NodeHandler) SetupWebhookWithManager ¶
SetupWebhookWithManager sets up Cluster webhooks. mutate path, validate path, error
func (*NodeHandler) ValidateCreate ¶
func (webhook *NodeHandler) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type.
func (*NodeHandler) ValidateDelete ¶
func (webhook *NodeHandler) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.
func (*NodeHandler) ValidateUpdate ¶
func (webhook *NodeHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type.
Click to show internal directories.
Click to hide internal directories.