Documentation ¶
Overview ¶
Package podmutation contains the webhook that injects sidecars into pods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodMutator ¶
type PodMutator interface {
Mutate(ctx context.Context, ns corev1.Namespace, pod corev1.Pod) (corev1.Pod, error)
}
PodMutator mutates a pod.
type WebhookHandler ¶
WebhookHandler is a webhook handler that analyzes new pods and injects appropriate sidecars into it.
func NewWebhookHandler ¶
func NewWebhookHandler(cfg config.Config, logger logr.Logger, decoder admission.Decoder, cl client.Client, podMutators []PodMutator) WebhookHandler
NewWebhookHandler creates a new WebhookHandler.
Click to show internal directories.
Click to hide internal directories.