Skip to content

fix: custom controller namespace refs in gateway namespace mode#6065

Merged
zirain merged 1 commit intoenvoyproxy:mainfrom
cnvergence:fix-sa-audience
May 14, 2025
Merged

fix: custom controller namespace refs in gateway namespace mode#6065
zirain merged 1 commit intoenvoyproxy:mainfrom
cnvergence:fix-sa-audience

Conversation

@cnvergence
Copy link
Member

@cnvergence cnvergence commented May 14, 2025

What type of PR is this?

What this PR does / why we need it:

Changes between #5937 and #5871 weren't properly synced.

Which issue(s) this PR fixes:

Fixes #6064

Release Notes: Yes/No

@cnvergence cnvergence requested a review from a team as a code owner May 14, 2025 09:14
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
@@ -636,10 +637,10 @@ func (i *Infra) getEnvoyGatewayCA(ctx context.Context) string {
secret := &corev1.Secret{}
err := i.Client.Get(ctx, types.NamespacedName{
Name: "envoy",
Copy link
Member Author

Choose a reason for hiding this comment

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

note: we also hardcode the name when creating the secrets

Copy link
Member

@zhaohuabing zhaohuabing 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!

Should we add e2e tests for customized controller namespace to prevent regressions? @envoyproxy/gateway-maintainers

@cnvergence
Copy link
Member Author

/retest

@zirain zirain merged commit 8e63e0b into envoyproxy:main May 14, 2025
42 of 43 checks passed
@cnvergence cnvergence deleted the fix-sa-audience branch May 14, 2025 10:47
cnvergence added a commit to cnvergence/gateway that referenced this pull request May 14, 2025
@codecov
Copy link

codecov bot commented May 14, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 70.41%. Comparing base (00d48bd) to head (a73d9e4).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ternal/infrastructure/kubernetes/infra_resource.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6065      +/-   ##
==========================================
+ Coverage   70.38%   70.41%   +0.02%     
==========================================
  Files         217      217              
  Lines       36171    36171              
==========================================
+ Hits        25458    25468      +10     
+ Misses       9191     9182       -9     
+ Partials     1522     1521       -1     

☔ 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.

zirain pushed a commit that referenced this pull request May 14, 2025
…pace mode (#6067)

fix: custom controller namespace refs in gateway namespace mode (#6065)

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
shawnh2 pushed a commit to shawnh2/gateway that referenced this pull request Sep 15, 2025
…pace mode (envoyproxy#6067)

fix: custom controller namespace refs in gateway namespace mode (envoyproxy#6065)

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
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.

TLS ConfigMap missing ca.crt with custom namespace in GatewayNamespace mode

3 participants