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

Fix label segmentation when using custom prefix #4272

Merged
merged 1 commit into from Dec 7, 2018
Merged

Conversation

hsmade
Copy link
Contributor

@hsmade hsmade commented Dec 5, 2018

What does this PR do?

This fixes a bug with the consul catalog label segmentation when using a custom prefix (other than traefik). I found this on our QA system when implementing a second traefik cluster for internal traffic.

Motivation

I never realised that Provider.label is actually being reset to the standard one: https://github.com/containous/traefik/blob/v1.7/provider/consulcatalog/convert_types.go#L22

More

  • Added a test to reflect this use case

Additional Notes

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hsmade
Copy link
Contributor Author

hsmade commented Dec 7, 2018 via email

@hsmade hsmade deleted the v1.7 branch December 11, 2018 08:40
@ldez ldez mentioned this pull request Dec 17, 2018
4 tasks
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

5 participants