Skip to content

Fix label segmentation when using custom prefix#4272

Merged
traefiker merged 1 commit intotraefik:v1.7from
hsmade:v1.7
Dec 7, 2018
Merged

Fix label segmentation when using custom prefix#4272
traefiker merged 1 commit intotraefik:v1.7from
hsmade:v1.7

Conversation

@hsmade
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

5 participants