Skip to content
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

Allow Modifier type to be changed via annotation in a Kubernetes Ingress #3473

Closed

Conversation

alexquintero
Copy link

@alexquintero alexquintero commented Jun 11, 2018

What does this PR do?

This allows you to specify ReplacePathRegex rewrites using a Kubernetes Ingress backend. It works by creating an annotation (traefik.ingress.kubernetes.io/modifier-type: ReplacePathRegex) that overrides the default of ‘ReplacePath’.

Motivation

There was no way to specify these kinds of rewrite rules using Kubernetes Ingress backends. We needed this to preserve some compatibility between old clients and new APIs hosted in Kubernetes.

More

  • Added/updated tests
  • Added/updated documentation

Potentially solves Issue 2985.

@dtomcej
Copy link
Contributor

dtomcej commented Jun 12, 2018

Hello @alexquintero,

Thanks for your contribution!

Unfortunately, rewrite-target is not an annotation that can have its behavior switched, as it will cause other issues with compatability.

However, the need for matchers is indeed important, and I have created a PR (#3481) that will enable all the matchers.

Once that PR is merged, we will close this one. Please take a look, and give feedback on that PR if you wish.

@ldez ldez added the kind/enhancement a new or improved feature. label Jun 12, 2018
@ldez
Copy link
Member

ldez commented Jul 6, 2018

Closed in favor of #3481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants