Skip to content

Use gateway name as Proxy fleet name for Gateway Namespace mode#6135

Merged
zirain merged 1 commit intoenvoyproxy:mainfrom
zirain:fix-6131
May 26, 2025
Merged

Use gateway name as Proxy fleet name for Gateway Namespace mode#6135
zirain merged 1 commit intoenvoyproxy:mainfrom
zirain:fix-6131

Conversation

@zirain
Copy link
Member

@zirain zirain commented May 21, 2025

fixes: #6131

@codecov
Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 66.07143% with 19 lines in your changes missing coverage. Please review.

Project coverage is 70.58%. Comparing base (f89ca94) to head (c0e4868).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
internal/xds/server/kubejwt/tokenreview.go 0.00% 15 Missing ⚠️
internal/xds/server/kubejwt/jwtinterceptor.go 0.00% 3 Missing ⚠️
internal/xds/server/runner/runner.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6135      +/-   ##
==========================================
- Coverage   70.62%   70.58%   -0.04%     
==========================================
  Files         219      219              
  Lines       36500    36511      +11     
==========================================
- Hits        25777    25772       -5     
- Misses       9195     9210      +15     
- Partials     1528     1529       +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 zirain marked this pull request as ready for review May 21, 2025 12:19
@zirain zirain requested a review from a team as a code owner May 21, 2025 12:19
@zirain zirain force-pushed the fix-6131 branch 2 times, most recently from 706dfc7 to 9a8ce26 Compare May 23, 2025 09:58
@zirain zirain requested review from arkodg and cnvergence May 23, 2025 09:59
Copy link
Contributor

Choose a reason for hiding this comment

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

ha, can we decorate this with comments, mentioning that we need the IR key here to set in serviceCluster

another option is to pass the IR key into

if err := r.mgr.CreateOrUpdateProxyInfra(ctx, val); err != nil {
and eventually pass the context here ?

Copy link
Member Author

Choose a reason for hiding this comment

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

the root cause there's two type thing in this name field

  • In controller namspace mode, it's ns/name (equal to irKey)
  • In gateway namespace mode, it's just the name.

we'd better clean this in a follow up PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

can we avoid this ? looks like its following alphabetical order ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Before, it's hand made. Now it's part of make go.testdata.complete, which is better IMO.

Copy link
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 !
added one comment

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain merged commit ffd9e5a into envoyproxy:main May 26, 2025
61 of 65 checks passed
@zirain zirain deleted the fix-6131 branch May 26, 2025 13:31
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.

Use gateway name as Proxy fleet name for Gateway Namespace mode

4 participants