-
Notifications
You must be signed in to change notification settings - Fork 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 rewrites annotation #64
Add rewrites annotation #64
Conversation
@pleshakov please review |
@jmastr A few suggestions:
r, _ := regexp.Compile("serviceName=([a-z\\-]+) +rewrite=([/a-z0-9]+)") A service name can also contain numbers. A URL can contain characters like Please look at https://github.com/nginxinc/kubernetes-ingress/blob/master/nginx-plus-controller/nginx/configurator.go#L232 , where we're parsing a similar annotation.
|
Very nice! Will do! |
bcaa65a
to
4456fb3
Compare
Hi @pleshakov, I worked in your comments about parsing, logging and testing. Note that I removed the |
@jmastr Could you replace |
4456fb3
to
4c0f7f8
Compare
@pleshakov done |
Great. Thx |
We'll prepare a new release -- https://github.com/nginxinc/kubernetes-ingress/releases -- that will have this and other features. A new tag will be published to the https://hub.docker.com/r/nginxdemos/nginx-ingress/ repo. |
That's awesome! Thank you very, very much! |
I am going to give a talk about this at the next Kubernetes meetup in Berlin, Germany. |
That's awesome!! |
Closes #63