refactor: Mesos labels.
This commit is contained in:
parent
ff61cc971e
commit
4b93d040b3
11 changed files with 969 additions and 1137 deletions
13
provider/mesos/config_root.go
Normal file
13
provider/mesos/config_root.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue