traefik/templates
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
..
consul_catalog.tmpl consul/kv.tmpl: weight default value should be a int (#826) 2016-11-23 14:49:55 +01:00
docker.tmpl IP Whitelists for Frontend (with Docker- & Kubernetes-Provider Support) 2017-05-19 15:19:29 +02:00
ecs.tmpl Add an ECS provider 2017-02-05 18:09:30 +00:00
eureka.tmpl fix(eureka): Wrong host in rule 2016-11-20 18:25:48 +01:00
kubernetes.tmpl Merge branch 'v1.3' into merge-back-1_3_0-rc3 2017-05-24 20:39:38 +02:00
kv.tmpl Adds definitions to backend kv template for health checking 2017-06-12 21:54:08 +02:00
marathon.tmpl [marathon] Use single API call to fetch Marathon resources. 2017-07-11 14:35:01 +02:00
mesos.tmpl add mesos provider inspired by mesos-dns & marathon provider 2016-07-20 11:56:14 +02:00
notFound.tmpl Traefik 2015-09-10 16:46:27 +02:00
rancher.tmpl Add Basic Auth per Frontend for Rancher & Docker Dynamic Provider 2017-04-19 21:05:43 +02:00