mutating

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const TaintNodeNetworkUnavailable = "node.kubernetes.io/network-unavailable"

TaintNodeNetworkUnavailable will be added when node's network is unavailable and removed when network becomes ready.

Variables

This section is empty.

Functions

func PodCreateMutation

func PodCreateMutation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

Types

type Handler

type Handler struct {
	Decoder *admission.Decoder
	Cache   cache.Cache
	Client  client.Client
}

func NewHandler

func NewHandler() *Handler

func (*Handler) Handle

func (*Handler) InjectCache

func (h *Handler) InjectCache(cache cache.Cache) error

func (*Handler) InjectClient

func (h *Handler) InjectClient(client client.Client) error

func (*Handler) InjectDecoder

func (h *Handler) InjectDecoder(decoder *admission.Decoder) error

Jump to

Keyboard shortcuts

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