Skip to content

feat(target-allocator): add extraEnvs support#2099

Open
ilia-medvedev wants to merge 1 commit intoopen-telemetry:mainfrom
ilia-medvedev:feat/target-allocator-extra-envs
Open

feat(target-allocator): add extraEnvs support#2099
ilia-medvedev wants to merge 1 commit intoopen-telemetry:mainfrom
ilia-medvedev:feat/target-allocator-extra-envs

Conversation

@ilia-medvedev
Copy link

Summary

Adds extraEnvs support to the target-allocator Helm chart, allowing users to set arbitrary environment variables in the target allocator container. This follows the same pattern already established in the opentelemetry-collector chart.

Changes

  • Added targetAllocator.extraEnvs: [] field to values.yaml with examples
  • Updated deployment template to render extraEnvs after built-in OTELCOL_NAMESPACE env var
  • Added extraEnvs to values.schema.json for validation
  • Bumped chart version to 0.126.11 per contribution guidelines

Use Case

Users can now set environment variables like GOMEMLIMIT for memory management:

targetAllocator:
  extraEnvs:
    - name: GOMEMLIMIT
      value: "128MiB"

Or inject from secrets:

targetAllocator:
  extraEnvs:
    - name: API_KEY
      valueFrom:
        secretKeyRef:
          name: my-secret
          key: api-key

Testing

  • Helm lint passes
  • Chart templates render correctly with extraEnvs
  • Schema validation includes new field

Related

Closes #2098

Add extraEnvs field to targetAllocator in values.yaml and render it
in the deployment template after the existing OTELCOL_NAMESPACE env var.
Follows the same pattern used in the opentelemetry-collector chart.

This allows users to set arbitrary environment variables such as GOMEMLIMIT,
custom debugging flags, or application-specific configuration without needing
to modify chart templates directly.

Bump chart version to 0.126.11 per contribution guidelines.

Relates to: open-telemetry#2098

Signed-off-by: ilia-medvedev <ilia.medvedev@gong.io>
@ilia-medvedev ilia-medvedev requested a review from a team as a code owner February 25, 2026 06:25
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 25, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: ilia-medvedev / name: ilia-medvedev (736a02f)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant