Check for explicitly defined Marathon port first.

Previously, we did the check too late resulting in the traefik.port
label not being effective.

The change comes with additional refactorings in production and tests.
This commit is contained in:
Timo Reimann 2017-04-20 22:05:21 +02:00
parent f1bc80ca12
commit 099d605aed
3 changed files with 290 additions and 228 deletions

6
testhelpers/helpers.go Normal file
View file

@ -0,0 +1,6 @@
package testhelpers
// Intp returns a pointer to the given integer value.
func Intp(i int) *int {
return &i
}