refactor: Mesos labels.

This commit is contained in:
Fernandez Ludovic 2018-03-29 00:01:24 +02:00 committed by Traefiker Bot
parent ff61cc971e
commit 4b93d040b3
11 changed files with 969 additions and 1137 deletions

View file

@ -0,0 +1,13 @@
package mesos
import (
"github.com/containous/traefik/types"
"github.com/mesosphere/mesos-dns/records/state"
)
func (p *Provider) buildConfiguration(tasks []state.Task) *types.Configuration {
if p.TemplateVersion == 1 {
return p.buildConfigurationV1(tasks)
}
return p.buildConfigurationV2(tasks)
}