fix: add unsupported status condition for filters within BackendRef#2620
fix: add unsupported status condition for filters within BackendRef#2620arkodg merged 8 commits intoenvoyproxy:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2620 +/- ##
==========================================
+ Coverage 63.00% 63.08% +0.07%
==========================================
Files 122 122
Lines 19770 19811 +41
==========================================
+ Hits 12457 12498 +41
Misses 6506 6506
Partials 807 807 ☔ View full report in Codecov by Sentry. |
|
/retest |
internal/gatewayapi/route.go
Outdated
There was a problem hiding this comment.
should we continue, we have been failing fast and early in other places
There was a problem hiding this comment.
we could, let's fail fast then on this
There was a problem hiding this comment.
rethinking again, this code should live inside validateBackendRef which gets called here
gateway/internal/gatewayapi/route.go
Line 1080 in ac02437
which automatically converts the weight into a invalidWeight ensuring that a percentage of traffic gets 503'd
There was a problem hiding this comment.
looks good, but the field Filters is within gwapiv1.HTTPBackendRef or gwapiv1a1.GRPCBackendRef.
we process BackendRef based on gwapiv1.BackendRef
There was a problem hiding this comment.
we've had to do something similar for xRoutes, so we created RouteContext
gateway/internal/gatewayapi/contexts.go
Line 155 in cc88e9c
may need something similar here
There was a problem hiding this comment.
if we want to extend it, then sure
thanks for explaining
|
/retest |
fae5f06 to
063d326
Compare
063d326 to
6a64316
Compare
5dfa61a to
c76954d
Compare
|
/retest |
arkodg
left a comment
There was a problem hiding this comment.
LGTM, thanks for incorporating the feedback
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
c76954d to
d59e52e
Compare
|
sure, found the context in #1252 |
|
/retest |
|
/retest |
1 similar comment
|
/retest |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes