You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(helm): set the gateway's OTEL_* environment variables from chart values #4553
As an operator of OpenShell,
I want to set the gateway's OTEL_* environment variables through the Helm chart,
so that I don't have to patch the rendered StatefulSet to authenticate to my collector or tune export.
Problem Statement
The gateway reads the standard OpenTelemetry environment variables to tune OTLP export, for example:
OTEL_EXPORTER_OTLP_HEADERS and OTEL_EXPORTER_OTLP_LOGS_HEADERS for collector credentials. Supervisors also receive the OCSF headers.
OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG for sampling.
OTEL_RESOURCE_ATTRIBUTES for extra resource attributes, such as deployment.environment.
OTEL_EXPORTER_OTLP_COMPRESSION and OTEL_EXPORTER_OTLP_TIMEOUT for transport tuning.
The Helm chart has no way to add environment variables to the gateway container. A Helm deployment can't use any of these variables, so it can't send OCSF events to a collector that requires authentication.
Proposed Design
Let chart values add environment variables to the gateway container, including values read from a Kubernetes Secret, so that collector credentials don't appear in the values file.
Activity