podinjector

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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