Skip to content

feat: add extraEnv support to envoy-gateway controller deployment#8733

Merged
arkodg merged 2 commits intoenvoyproxy:mainfrom
girikuncoro:extraenv-support
Apr 22, 2026
Merged

feat: add extraEnv support to envoy-gateway controller deployment#8733
arkodg merged 2 commits intoenvoyproxy:mainfrom
girikuncoro:extraenv-support

Conversation

@girikuncoro
Copy link
Copy Markdown
Contributor

@girikuncoro girikuncoro commented Apr 13, 2026

What

Add deployment.envoyGateway.extraEnv to the gateway-helm chart, allowing operators to inject additional environment variables into the controller container.

Usage Example

deployment:
  envoyGateway:
    extraEnv:
    - name: OTEL_METRICS_EXEMPLAR_FILTER
      value: always_off

Why

The controller deployment template hardcodes two env vars (ENVOY_GATEWAY_NAMESPACE and KUBERNETES_CLUSTER_DOMAIN) with no mechanism to add more. This makes it impossible to configure behavior controlled by standard environment variables (e.g. OTEL_METRICS_EXEMPLAR_FILTER, GOGC, GOMEMLIMIT) without patching the deployment out-of-band.

Fixes #8732

Add deployment.envoyGateway.extraEnv to the gateway-helm chart values,
allowing operators to inject additional environment variables into the
controller container.

The controller deployment template currently hardcodes two env vars
(ENVOY_GATEWAY_NAMESPACE and KUBERNETES_CLUSTER_DOMAIN) with no way
to add more. This makes it impossible to configure behavior controlled
by standard environment variables (e.g. OTEL_METRICS_EXEMPLAR_FILTER,
GOGC, GOMEMLIMIT) without patching the deployment out-of-band.

Fixes envoyproxy#8732

Signed-off-by: Giri Kuncoro <girikuncoro@gmail.com>
@girikuncoro girikuncoro requested a review from a team as a code owner April 13, 2026 10:54
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 13, 2026

Deploy Preview for cerulean-figolla-1f9435 canceled.

Name Link
🔨 Latest commit b7ff35a
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69e773f613583c00085576db

@girikuncoro girikuncoro force-pushed the extraenv-support branch 4 times, most recently from b587f3b to e32e58e Compare April 13, 2026 11:02
@girikuncoro girikuncoro changed the title charts: add extraEnv support to envoy-gateway controller deployment feat: add extraEnv support to envoy-gateway controller deployment Apr 13, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.68%. Comparing base (85e62dd) to head (b7ff35a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8733      +/-   ##
==========================================
- Coverage   74.41%   73.68%   -0.74%     
==========================================
  Files         245      245              
  Lines       38977    48803    +9826     
==========================================
+ Hits        29006    35959    +6953     
- Misses       7967    10845    +2878     
+ Partials     2004     1999       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@girikuncoro girikuncoro force-pushed the extraenv-support branch 2 times, most recently from 38acc96 to af3239d Compare April 14, 2026 08:30
@girikuncoro
Copy link
Copy Markdown
Contributor Author

The coverage test fails, might not be relevant to my change / flaky

@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Apr 19, 2026

thanks, can you also add a test in https://github.com/envoyproxy/gateway/tree/main/test/helm

@arkodg arkodg added this to the v1.8.0-rc.1 Release milestone Apr 19, 2026
Signed-off-by: Giri Kuncoro <girikuncoro@gmail.com>
@girikuncoro
Copy link
Copy Markdown
Contributor Author

@arkodg thank you for the feedback! I've added the tests, hopefully this would be sufficient

Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@arkodg arkodg requested review from a team April 22, 2026 04:37
@arkodg arkodg merged commit a056d44 into envoyproxy:main Apr 22, 2026
37 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support extraEnv in gateway-helm chart

3 participants