webhook

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeMaintenanceWebhook

type NodeMaintenanceWebhook struct {
	client.Client
}

NodeMaintenanceWebhook is webhook for NodeMaintenance

func NewNodeMaintenanceWebhook

func NewNodeMaintenanceWebhook(kClient client.Client) *NodeMaintenanceWebhook

NewNodeMaintenanceWebhook creates a new NodeMaintenanceWebhook

func (*NodeMaintenanceWebhook) SetupWebhookWithManager

func (r *NodeMaintenanceWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*NodeMaintenanceWebhook) ValidateCreate

func (r *NodeMaintenanceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*NodeMaintenanceWebhook) ValidateDelete

func (r *NodeMaintenanceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*NodeMaintenanceWebhook) ValidateUpdate

func (r *NodeMaintenanceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err 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