sidecar

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sidecar contains operations related to sidecar manipulation (add, update, remove).

Index

Constants

View Source
const (
	// Annotation contains the annotation name that pods contain, indicating whether a sidecar is desired.
	Annotation = "sidecar.opentelemetry.io/inject"
)

Variables

This section is empty.

Functions

func Add

func Add(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector, pod corev1.Pod) (corev1.Pod, error)

Add a new sidecar container to the given pod, based on the given OpenTelemetryCollector.

func AnnotationValue

func AnnotationValue(ns corev1.Namespace, pod corev1.Pod) string

AnnotationValue returns the effective annotation value, based on the annotations from the pod and namespace.

func ExistsIn

func ExistsIn(pod corev1.Pod) bool

ExistsIn checks whether a sidecar container exists in the given pod.

func Remove

func Remove(pod corev1.Pod) (corev1.Pod, error)

Remove the sidecar container from the given pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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