Skip to content

feat: support custom redirects#6295

Merged
zirain merged 1 commit intoenvoyproxy:mainfrom
rudrakhp:feat_custom_redirect
Jun 13, 2025
Merged

feat: support custom redirects#6295
zirain merged 1 commit intoenvoyproxy:mainfrom
rudrakhp:feat_custom_redirect

Conversation

@rudrakhp
Copy link
Member

What type of PR is this?

feat: support custom redirects in BackendTrafficPolicy

What this PR does / why we need it:

To support setting redirect responses in custom response overrides.

Which issue(s) this PR fixes:

Fixes #5475
Related #5549

Release Notes: Yes/No

@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

Attention: Patch coverage is 96.59091% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.58%. Comparing base (28424b0) to head (a400c9a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/xds/translator/custom_response.go 93.61% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6295      +/-   ##
==========================================
+ Coverage   70.55%   70.58%   +0.03%     
==========================================
  Files         220      220              
  Lines       36771    36829      +58     
==========================================
+ Hits        25943    25997      +54     
- Misses       9293     9297       +4     
  Partials     1535     1535              

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

@rudrakhp rudrakhp marked this pull request as ready for review June 12, 2025 17:12
@rudrakhp rudrakhp requested a review from a team as a code owner June 12, 2025 17:12
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a omitempty to both the fields, so they dont show up as null in test file

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch added it in the existing Redirect struct as well

Signed-off-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
@rudrakhp
Copy link
Member Author

/retest

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 !

@arkodg arkodg requested review from a team June 12, 2025 19:03
@arkodg arkodg added this to the v1.5.0-rc.1 Release milestone Jun 12, 2025
@zirain zirain merged commit e0e8a29 into envoyproxy:main Jun 13, 2025
44 of 48 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 headers for responseOverride

3 participants