traefik/provider
Timo Reimann 779eeba650 [marathon] Use single API call to fetch Marathon resources.
Change Marathon provider to make just one API call instead of two per
configuration update by means of specifying embedded resources, which
enable retrieving multiple response types from the API at once. Apart
from the obvious savings in API calls, we primarily gain a consistent
view on both applications and tasks that allows us to drop a lot of
correlation logic.  Additionally, it will serve as the basis for the
introduction of readiness checks which require application/task
consistency for correct leverage on the proxy end.

Additional changes:

marathon.go:
- Filter on tasks now embedded inside the applications.
- Reduce/simplify signature on multiple template functions as we do not
  need to check for proper application/task correlation anymore.
- Remove getFrontendBackend in favor of just getBackend.
- Move filtering on enabled/exposed applications from `taskFilter` to
  `applicationFilter`. (The task filter just reached out to the
  applications anyway, so it never made sense to locate it with the
  tasks where the filter was called once for every task even though the
  result would never change.)
- Remove duplicate constraints filter in tasks, where it neither made
  sense to keep as it operates on the application level only.
- Add context to rendering error.

marathon_test.go:
- Simplify and reduce numerous tests.
- Convert tests with high number of cases into parallelized sub-tests.
- Improve readability/structure for several tests.
- Add missing test for enabled/exposed applications.
- Simplify the mocked Marathon server.

marathon.tmpl:
- Update application/task iteration.
- Replace `getFrontendBackend` by `getBackend`.
2017-07-11 14:35:01 +02:00
..
boltdb Unexport Kvclient & StoreType from kv Provider 2017-05-11 19:33:32 +02:00
consul Speeding up health change detection by separating it from catalog services check. 2017-06-20 20:27:04 +02:00
docker Factorize labels 2017-07-10 16:58:12 +02:00
dynamodb refactor(dynamodb): Use Traefik Logger. 2017-07-08 00:05:53 +02:00
ecs Factorize labels 2017-07-10 16:58:12 +02:00
etcd Unexport Kvclient & StoreType from kv Provider 2017-05-11 19:33:32 +02:00
eureka Factorize labels 2017-07-10 16:58:12 +02:00
file Allow file provider to load config from files in a directory. 2017-06-27 16:58:04 +02:00
kubernetes Factorize labels 2017-07-10 16:58:12 +02:00
kv Unexport Kvclient & StoreType from kv Provider 2017-05-11 19:33:32 +02:00
marathon [marathon] Use single API call to fetch Marathon resources. 2017-07-11 14:35:01 +02:00
mesos Factorize labels 2017-07-10 16:58:12 +02:00
rancher Factorize labels 2017-07-10 16:58:12 +02:00
zk Unexport Kvclient & StoreType from kv Provider 2017-05-11 19:33:32 +02:00
provider.go feat: Add Trace in Base Provider. 2017-07-08 00:05:53 +02:00
provider_test.go refactor: Logs & errors review. 2017-05-30 23:33:27 +02:00
string_util.go IP Whitelists for Frontend (with Docker- & Kubernetes-Provider Support) 2017-05-19 15:19:29 +02:00
string_util_test.go refactor: ordering imports. 2017-06-09 23:55:49 +02:00