-
-
Notifications
You must be signed in to change notification settings - Fork 5.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 basic compatibility with marathon-lb #720
Conversation
/cc @containous/traefik |
I hope this to be merged in 1.1 👼 |
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.
@guilhem thanks for your contribution!
Could you add a unit test for this use case?
Add compatibility with labels: `HAPROXY_GROUP` and `HAPROXY_0_VHOST`. * `HAPROXY_GROUP` become a new tag * `HAPROXY_0_VHOST` become a rule `Host:` https://github.com/mesosphere/marathon-lb
@emilevauge done :) |
}, | ||
}, | ||
marathonLBCompatibility: true, | ||
expected: "Host:foo.bar", |
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.
Not sure to understand here 🤔
I was expecting expected: "Host:notvalid"
instead, reading the code in getFrontendRule
. Am I missing something?
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.
if traefik.frontend.rule
is present there is a return
before trying HAPROXY
label.
I prefer this behavior with traefik
labels superseding other one.
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.
OK thanks :)
@guilhem needs rebase on v1.1 branch :) |
@emilevauge done :) |
I think you can squash with 1 button (to remove "merge" commit) |
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.
Thanks @guilhem
LGTM!
/cc @containous/traefik
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.
LGTM 🐮
Add compatibility with labels:
HAPROXY_GROUP
andHAPROXY_0_VHOST
.HAPROXY_GROUP
become a new tagHAPROXY_0_VHOST
become a ruleHost:
https://github.com/mesosphere/marathon-lb