{"modulePath":"github.com/KusionStack/controller-mesh","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pod\n\n## Variables\n\n```go\nvar (\n\t// HandlerMap contains admission webhook handlers\n\tHandlerMap = map[string]admission.Handler{\n\t\t\"mutate-pod\": \u0026MutatingHandler{},\n\t}\n)\n```\n\n## Types\n\n```go\ntype ContainerEnv struct {\n\tName string `json:\"name\"`\n\tEnv  []Env  `json:\"env\"`\n}\n```\n\n```go\ntype Env struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype MutatingHandler struct {\n\tClient  client.Client\n\tDecoder *admission.Decoder\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *MutatingHandler) Handle(ctx context.Context, req admission.Request) admission.Response\n```\nHandle handles admission requests.\n\n```go\nfunc (h *MutatingHandler) InjectClient(c client.Client) (err error)\n```\nInjectClient injects the client into the PodCreateHandler\n\n```go\nfunc (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error\n```\n\n","path":"github.com/KusionStack/controller-mesh/pkg/webhook/pod","name":"pod","synopsis":"","isRedistributable":true}
