mutating

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"mutate-node-status": NewNodeStatusMutatingHandler(),
	}
)

Functions

This section is empty.

Types

type IgnoreFilter

type IgnoreFilter func(req admission.Request) bool

type NodeMutatingHandler

type NodeMutatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
	// contains filtered or unexported fields
}

NodeMutatingHandler handles Node

func NewNodeStatusMutatingHandler

func NewNodeStatusMutatingHandler() *NodeMutatingHandler

NewNodeMutatingHandler creates a new handler for node/status.

func (*NodeMutatingHandler) Handle

Handle handles admission requests.

func (*NodeMutatingHandler) InjectClient

func (n *NodeMutatingHandler) InjectClient(c client.Client) error

InjectClient injects the client into the PodMutatingHandler

func (*NodeMutatingHandler) InjectDecoder

func (n *NodeMutatingHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the PodMutatingHandler

Jump to

Keyboard shortcuts

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