-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Gateway-target BTP ignored when route timeout defined #4860
Conversation
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4860 +/- ##
=======================================
Coverage 66.28% 66.29%
=======================================
Files 209 209
Lines 31956 31923 -33
=======================================
- Hits 21182 21163 -19
+ Misses 9525 9515 -10
+ Partials 1249 1245 -4 ☔ View full report in Codecov by Sentry. |
looks good thanks, does the unit test cover the regression (overriden policy attached to Gateway + timeout specified in HTTPRoute)? |
Yea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks!
…y#4860) * fix: Gateway-target BTP ignored when route timeout defined Signed-off-by: Guy Daich <[email protected]> * fix gen, add note Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Guy Daich <[email protected]> (cherry picked from commit e6fce34) Signed-off-by: Guy Daich <[email protected]>
* fix: EnvoyExtensionPolicy reference grant (#4851) * fix: EnvoyExtensionPolicy reference grant Signed-off-by: Guy Daich <[email protected]> * fix lint, add release note Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Guy Daich <[email protected]> (cherry picked from commit 905405e) Signed-off-by: Guy Daich <[email protected]> * fix: Gateway-target BTP ignored when route timeout defined (#4860) * fix: Gateway-target BTP ignored when route timeout defined Signed-off-by: Guy Daich <[email protected]> * fix gen, add note Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Guy Daich <[email protected]> (cherry picked from commit e6fce34) Signed-off-by: Guy Daich <[email protected]> * build(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#4901) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0. - [Commits](golang/crypto@v0.30.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit d71ba7b) Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Guy Daich <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…y#4860) * fix: Gateway-target BTP ignored when route timeout defined Signed-off-by: Guy Daich <[email protected]> * fix gen, add note Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Guy Daich <[email protected]> (cherry picked from commit e6fce34) Signed-off-by: Huabing Zhao <[email protected]>
What type of PR is this?
What this PR does / why we need it:
Returns the Gateway-API
HTTPRoute
timeout to theRoute
IR struct, extracting it from theTrafficFeatures
struct. Both HTTPRoute and BTP may define a route timeout. Instead of merging during IR calculation, both values are now saved in IR. The effective route timeout is calculated in XDS translation, giving precedence to GW-API settings.This simplifies merging logic and makes it easy to identify routes that a gateway-level policy should be applied to.
Which issue(s) this PR fixes:
Fixes #4844
Release Notes: Yes/No