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 ¶
AnnotationValue returns the effective annotation value, based on the annotations from the pod and namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.