-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Make Traefik health checks label-configurable with Marathon. #1320
Conversation
This PR builds upon the changes introduced by #1319. Thus, it is currently based on that branch and will be rebased onto master as soon as the dependent PR merges. |
4ce1619
to
279570e
Compare
7c78105
to
24ed5ed
Compare
279570e
to
73f02f6
Compare
cb54814
to
60ea919
Compare
73f02f6
to
031c82c
Compare
8e68623
to
9c62808
Compare
@timoreimann #1319 is merged, I think you can rebase on master now. |
@ldez already did a few days ago (forgot to comment). Latest merge conflicts are due to more recent PRs being merged. Will update the PR later. This shouldn't stop reviewing though. |
4d7f3d5
to
8a99789
Compare
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.
Can you activate the HealthCheckSuite ? https://github.com/containous/traefik/blob/master/integration/integration_test.go#L25-L40
ed5a0d7
to
7f62c39
Compare
integration/healthcheck_test.go
Outdated
@@ -17,15 +17,15 @@ import ( | |||
) | |||
|
|||
// HealchCheck test suites (using libcompose) |
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.
missing typo.
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 for the note, done.
06d365d
to
db3e461
Compare
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 @timoreimann
LGTM :)
You added 2 new labels in the Marathon provider that we should report in others providers later: https://github.com/containous/traefik/pull/1320/files#diff-ed1959fa6ceca7431deaf68202208463R29. Would you open a proposal in an issue to refactor and centralize labels/tags/annotations for all providers? This would simplify a lot the providers mechanism :)
d03ed9f
to
8023297
Compare
For the two existing health check parameters (path and interval), we add support for Marathon labels. Changes in detail: - Extend the Marathon provider and template. - Refactor Server.loadConfig to reduce duplication. - Refactor the healthcheck package slightly to accommodate the changes and allow extending by future parameters. - Update documentation.
8023297
to
5d43b9e
Compare
For the two existing health check parameters (path [formerly known as URL] and interval), we add support for Marathon labels.
Changes in detail:
Fixes #1232.