-
Notifications
You must be signed in to change notification settings - Fork 703
gw-api: Support multiple RequestMirror filters per rule in GW API #5652
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
gw-api: Support multiple RequestMirror filters per rule in GW API #5652
Conversation
|
Hi @LiorLieberman! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace |
Signed-off-by: Lior Lieberman <[email protected]>
d1730c5 to
144b68c
Compare
Signed-off-by: Lior Lieberman <[email protected]>
3303086 to
e9f451d
Compare
sunjayBhatia
left a comment
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.
so far looks good, just one question 👍🏽
|
@skriss do you have any feedback before I go ahead and add tests for it? |
Signed-off-by: Lior Lieberman <[email protected]>
3249d4b to
c76f0e3
Compare
Signed-off-by: Lior Lieberman <[email protected]>
30d9290 to
aa37e0b
Compare
|
I am not sure I followed all needed. I added the changelog now. |
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.
looks like a minor lint issue to fix (can remove the offending comment?)
couple other comments to clean up:
contour/internal/dag/status_test.go
Line 7771 in dfe042e
// Invalid filters still result in an attached route. contour/internal/dag/status_test.go
Line 10526 in dfe042e
// Invalid filters still result in an attached route.
and one to modify according to the new guidance on mirror policy:
contour/internal/dag/gatewayapi_processor.go
Lines 1132 to 1135 in dfe042e
// Per Gateway API docs: "Specifying a core filter multiple times // has unspecified or implementation-specific conformance." Contour // chooses to use the first instance of each filter type and ignore // subsequent instances.
Signed-off-by: Lior Lieberman <[email protected]>
|
Thanks @sunjayBhatia, done! |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5652 +/- ##
==========================================
- Coverage 78.54% 78.51% -0.03%
==========================================
Files 138 138
Lines 19046 19058 +12
==========================================
+ Hits 14959 14964 +5
- Misses 3803 3808 +5
- Partials 284 286 +2
|
Signed-off-by: Sunjay Bhatia <[email protected]>
sunjayBhatia
left a comment
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.
made a tiny unit test nit change to prevent another back and forth on comments, otherwise LGTM
Adding support for multiple RequestMirror filters per rule in GW API. both GRPC and HTTP
Fixes: #4566
ref: kubernetes-sigs/gateway-api#2199