v1

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookName = "node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeHandler

type NodeHandler struct {
	Client client.Client
}

NodeHandler implements a validating and defaulting webhook for Cluster.

func (*NodeHandler) Default

func (webhook *NodeHandler) Default(ctx context.Context, obj runtime.Object, req admission.Request) error

Default satisfies the defaulting webhook interface.

func (*NodeHandler) SetupWebhookWithManager

func (webhook *NodeHandler) SetupWebhookWithManager(mgr ctrl.Manager) (string, string, error)

SetupWebhookWithManager sets up Cluster webhooks. mutate path, validate path, error

func (*NodeHandler) ValidateCreate

func (webhook *NodeHandler) ValidateCreate(_ context.Context, obj runtime.Object, req admission.Request) 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, req admission.Request) 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, req admission.Request) error

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

Jump to

Keyboard shortcuts

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