mutating

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerBuilderMap contains admission webhook handlers builder
	HandlerBuilderMap = map[string]framework.HandlerBuilder{
		"mutate-pod": &podMutateBuilder{},
	}
)

Functions

This section is empty.

Types

type PodMutatingHandler

type PodMutatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

PodMutatingHandler handles Pod

func (*PodMutatingHandler) Handle

Handle handles admission requests.

func (*PodMutatingHandler) InjectClient

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

InjectClient injects the client into the PodMutatingHandler

func (*PodMutatingHandler) InjectDecoder

func (h *PodMutatingHandler) 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