-
Notifications
You must be signed in to change notification settings - Fork 1.7k
WIP: [nginx-ingress-controller] Add support for rewrite #1079
WIP: [nginx-ingress-controller] Add support for rewrite #1079
Conversation
|
||
const ( | ||
rewriteTo = "ingress-nginx.kubernetes.io/rewrite-to" | ||
addBaseURL = "ingress-nginx.kubernetes.io/add-base-url" |
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.
please add an example in the readme with how these interact with the controller and ingresses in the cluster
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.
yes, this is what's missing now
Looks good, mostly just stylistic comments. Rewrites are so common that I think we should document this with ample examples (with without base, with regex etc). |
c838cbd
to
4924b57
Compare
@@ -0,0 +1,67 @@ | |||
|
|||
Create an Ingress rule with a rewrite annotation: |
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.
can you also add an examble with base path?
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.
yes, I'm searching for a sample app :)
You have a merge conflict, LGTM but for the doc nit |
@bprashanth can we left the missing example for #1104? |
fixes #860