-
Notifications
You must be signed in to change notification settings - Fork 492
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
Add HTTP Rewrite and Redirect Filter guide #1162
Add HTTP Rewrite and Redirect Filter guide #1162
Conversation
Hi @rainest. 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. |
/ok-to-test |
d854f3d
to
d364cc5
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.
Thanks @rainest, this is really great!
<!--- | ||
Do these behave at all differently based on matches.path.type? I expect no, and | ||
that implementations should just always replace only the matching path prefix | ||
or the entire path. Using ReplacePrefixMatch on Exact is the same as | ||
ReplaceFullPath. RegularExpression looks a bit ambiguous, since the | ||
PathMatchType looks unclear on whether they're handled as prefixes or not. | ||
--> |
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.
Good point, I think #1166 will resolve this.
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.
Original in case the diff does something silly now that it's gone:
Do these behave at all differently based on matches.path.type? I expect no, and that implementations should just always replace only the matching path prefix or the entire path. Using ReplacePrefixMatch on Exact is the same as ReplaceFullPath. RegularExpression looks a bit ambiguous, since the PathMatchType looks unclear on whether they're handled as prefixes or not.
I simply removed this without adding additional explanation since it looks like 1166's answer is just "you can't configure them on those other types". Do we think we'd need explanation of that here or is that too far off into the weeds?
|
/lgtm Nice work @rainest, this is very clear. |
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 we're at a point with this one where we can remove [WIP]
from the name. Thanks Travis for the effort on this one, looks great.
/lgtm
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.
Thanks @rainest! Mostly LGTM, just a few small nits. On an unrelated note, if anyone wants to remove https://github.com/kubernetes-sigs/gateway-api/blob/master/site-src/css/extra.css, I would welcome that. The alignment that results in is particularly bad with this new page.
examples/experimental/http-redirect-rewrite/httproute-redirect-prefix.yaml
Show resolved
Hide resolved
examples/experimental/http-redirect-rewrite/httproute-redirect-https.yaml
Show resolved
Hide resolved
examples/experimental/http-redirect-rewrite/httproute-redirect-full.yaml
Show resolved
Hide resolved
0dda0bc
to
7b02e13
Compare
@robscott do we indeed want the backref comments in examples? Those do actually render in the guide: The other examples don't include the same; their usage is just loosely indicated by the directory name, though I'm not sure others have the same quality where the guide is under v1alpha2 and the examples are under experimental. I removed the original commit from the PR, backrefs.diff.txt if we want to re-add it. |
Move rewrite and redirect YAML into examples and load them via includes. Replace all tabs with spaces and remove trailing spaces from examples. Place example explanations before examples.
Remove the paragraph describing redirect loop handling. The spec behavior is still under discussion and remains undefined for now. See kubernetes-sigs#1185
2f586c0
to
8393061
Compare
8393061
to
5c02d19
Compare
Alright, preview properly stripping the new header (albeit only after the second try for some reason), so this should be all good to go. |
LGTM, I'll just approve though. /approve |
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: rainest, shaneutt, 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 |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
Adds a guide for GEP-726 features, including the changes currently under review in #1124
It is a WIP for two reasons:
RouteConditionType
for filter-related statuses if we want this, or a newRouteConditionReason
(it doesn't seem like it'd fit under any of the existing types unless we reject routes with invalid filters entirely, and I wouldn't expect to since they're per-rule and since the text indicates this should just be a warning, not an error).As a side note, I have bad timing and will be out from 5/18-5/28, so it may make sense to use this as a starting point for someone else if review takes time or it needs significant changes. Edit: then I forgot this is the week that a bunch of people are at Kubecon 🙂 I should actually be able to check things on the 26th even though I'm still technically out.
Which issue(s) this PR fixes:
Fixes #1038
Fixes #928
Does this PR introduce a user-facing change?: