-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 missing annotations to Docs #3264
Conversation
@@ -44,6 +44,7 @@ You can add these Kubernetes annotations to specific Ingress objects to customiz | |||
|[nginx.ingress.kubernetes.io/limit-rps](#rate-limiting)|number| | |||
|[nginx.ingress.kubernetes.io/permanent-redirect](#permanent-redirect)|string| | |||
|[nginx.ingress.kubernetes.io/permanent-redirect-code](#permanent-redirect-code)|number| | |||
|[nginx.ingress.kubernetes.io/temporal-redirect](#temporal-redirect)|string| |
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.
"-code" is missing in the anchor.
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.
OK, this is not a code so I'll correct the right place
@@ -66,6 +67,7 @@ You can add these Kubernetes annotations to specific Ingress objects to customiz | |||
|[nginx.ingress.kubernetes.io/ssl-redirect](#server-side-https-enforcement-through-redirect)|"true" or "false"| | |||
|[nginx.ingress.kubernetes.io/ssl-passthrough](#ssl-passthrough)|"true" or "false"| | |||
|[nginx.ingress.kubernetes.io/upstream-hash-by](#custom-nginx-upstream-hashing)|string| | |||
|[nginx.ingress.kubernetes.io/x-forwarded-prefix](#x-forwarded-prefix)|string| |
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.
"-header" is missing in the anchor.
@@ -352,6 +354,9 @@ This annotation allows to return a permanent redirect instead of sending data to | |||
|
|||
This annotation allows you to modify the status code used for permanent redirects. For example `nginx.ingress.kubernetes.io/permanent-redirect-code: '308'` would return your permanent-redirect with a 308. | |||
|
|||
### Temporal Redirect Code | |||
This annotation allows you to return a temporal redirect (Return Code 302) instead of sendind data to the upstream. For example `nginx.ingress.kubernetes.io/temporal-redirect: https://www.google.com` would redirect everything to Google with a Return Code of 301 (Moved Temporarily) |
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.
Typo in "sending".
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.
You say 302, and then 301.
@@ -352,6 +354,9 @@ This annotation allows to return a permanent redirect instead of sending data to | |||
|
|||
This annotation allows you to modify the status code used for permanent redirects. For example `nginx.ingress.kubernetes.io/permanent-redirect-code: '308'` would return your permanent-redirect with a 308. | |||
|
|||
### Temporal Redirect Code |
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.
Is this really a "code"? Looks like a URL to me.
Add missing annotations to Docs Signed-off-by: Ricardo Pchevuzinske Katz <[email protected]>
@antoineco Corrected as asked! Thanks for the review |
/lgtm thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: antoineco, rikatz 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 |
Merging. The error in e2e is being fixed in #3265 |
What this PR does / why we need it: This PR adds some missing annotations into Docs
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #3255Special notes for your reviewer: