handler

package
v0.0.0-...-d7e65e3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParams

func NewParams(pod *corev1.Pod, mutationHandler *LMPodMutationHandler, namespace string) *mutation.Params

NewParams returns Params object

Types

type LMPodMutationHandler

type LMPodMutationHandler struct {
	Client *config.K8sClient

	Log logr.Logger
	// contains filtered or unexported fields
}

LMPodMutationHandler represents the handler for the admission requests

func (*LMPodMutationHandler) Handle

func (podMutationHandler *LMPodMutationHandler) Handle(ctx context.Context, req admission.Request) admission.Response

Handle is called internally to handle the admission request

func (*LMPodMutationHandler) InjectDecoder

func (a *LMPodMutationHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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