podmutation

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

type WebhookHandler interface {
	admission.Handler
}

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.

Jump to

Keyboard shortcuts

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