Documentation ¶
Overview ¶
Package podinjector contains the webhook that injects sidecars into pods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMultipleInstancesPossible = errors.New("multiple OpenTelemetry Collector instances available, cannot determine which one to select") ErrNoInstancesAvailable = errors.New("no OpenTelemetry Collector instances available") ErrInstanceNotSidecar = errors.New("the OpenTelemetry Collector's mode is not set to sidecar") )
Functions ¶
This section is empty.
Types ¶
type PodSidecarInjector ¶
type PodSidecarInjector interface { admission.Handler admission.DecoderInjector }
PodSidecarInjector is a webhook handler that analyzes new pods and injects appropriate sidecars into it.
func NewPodSidecarInjector ¶
func NewPodSidecarInjector(cfg config.Config, logger logr.Logger, cl client.Client) PodSidecarInjector
NewPodSidecarInjector creates a new PodSidecarInjector.
Click to show internal directories.
Click to hide internal directories.