Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerBuilderMap contains admission webhook handlers builder HandlerBuilderMap = map[string]framework.HandlerBuilder{ "mutate-node-status": &nodeMutateBuilder{}, } )
Functions ¶
This section is empty.
Types ¶
type IgnoreFilter ¶
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(c client.Client, d *admission.Decoder) *NodeMutatingHandler
NewNodeStatusMutatingHandler creates a new handler for node/status.
func (*NodeMutatingHandler) Handle ¶
func (h *NodeMutatingHandler) Handle(ctx context.Context, req admission.Request) (resp admission.Response)
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
Click to show internal directories.
Click to hide internal directories.