validating

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]webhookutil.Handler{
		"validate-apps-openyurt-io-v1alpha1-nodepool": &NodePoolCreateUpdateHandler{},
	}
)

Functions

This section is empty.

Types

type NodePoolCreateUpdateHandler

type NodePoolCreateUpdateHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

NodePoolCreateUpdateHandler handles UnitedDeployment

func (*NodePoolCreateUpdateHandler) Handle

Handle handles admission requests.

func (*NodePoolCreateUpdateHandler) InjectClient

func (h *NodePoolCreateUpdateHandler) InjectClient(c client.Client) error

InjectClient injects the client into the PodCreateHandler

func (*NodePoolCreateUpdateHandler) InjectDecoder

func (h *NodePoolCreateUpdateHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the UnitedDeploymentCreateUpdateHandler

func (*NodePoolCreateUpdateHandler) SetOptions

func (h *NodePoolCreateUpdateHandler) SetOptions(options webhookutil.Options)

Jump to

Keyboard shortcuts

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