-
Notifications
You must be signed in to change notification settings - Fork 493
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
Clarify port redirect behaviour and add conformance tests for the same #1880
Clarify port redirect behaviour and add conformance tests for the same #1880
Conversation
Hi @gauravkghildiyal. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
2145ac9
to
1abf60e
Compare
Thanks @gauravkghildiyal! /ok-to-test |
1abf60e
to
8d0a22b
Compare
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.
One more small change from me, then this LGTM.
8d0a22b
to
5544711
Compare
As far as I can tell this cannot currently be implemented by Envoy as is, meaning most implementations cannot be conformant. Envoy has 2 modes:
But we have a test that I think we need either envoyproxy/envoy#25573 or envoyproxy/envoy#26516 |
The simplest way for to make some progress now would be to set |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauravkghildiyal, howardjohn, youngnick The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Will wait until tomorrow to remove the hold, but this LGTM as well. Thanks for all the work on this @gauravkghildiyal! |
a7f9c98
to
fc730bd
Compare
fc730bd
to
8fb6957
Compare
…on with redirect scheme
8fb6957
to
718fc15
Compare
Thanks to everyone for the quick reviews and feedback on this and to @gauravkghildiyal for the great work here! This was discussed at both Gateway API and GAMMA meetings this week and no significant blockers came up. Going to go ahead and merge and transition to RC2 prep. /lgtm |
According to kubernetes-sigs/gateway-api#1880 // When empty, the redirect port MUST be derived using the following rules: // // * If redirect scheme is not-empty, the redirect port MUST be the well-known // port associated with the redirect scheme. Specifically "http" to port 80 // and "https" to port 443. If the redirect scheme does not have a // well-known port, the listener port of the Gateway SHOULD be used. // * If redirect scheme is empty, the redirect port MUST be the Gateway // Listener port. Signed-off-by: Bart Smykla <bartek@smykla.com>
…formant (#9669) fix(GatewayAPI): make MeshHTTPRoute conversion port redirect conformant According to kubernetes-sigs/gateway-api#1880 > When empty, the redirect port MUST be derived using the following rules: > > * If redirect scheme is not-empty, the redirect port MUST be the well-known > port associated with the redirect scheme. Specifically "http" to port 80 > and "https" to port 443. If the redirect scheme does not have a > well-known port, the listener port of the Gateway SHOULD be used. > * If redirect scheme is empty, the redirect port MUST be the Gateway > Listener port. Signed-off-by: Bart Smykla <bartek@smykla.com>
What type of PR is this?
/kind documentation
/area conformance
/kind test
What this PR does / why we need it:
Clarify port redirect behaviour and add conformance tests for the same:
Proposal doc: https://docs.google.com/document/d/1fx8kuWh2bmBge9IRGn7NlhGqTP0Kj21Cz5RZyUW6428
Which issue(s) this PR fixes:
Fixes #1805
Fixes #1909
Does this PR introduce a user-facing change?: