refactor: ECS labels.

This commit is contained in:
Fernandez Ludovic 2018-03-28 02:13:48 +02:00 committed by Traefiker Bot
parent 5921909ef5
commit 46db91ce73
9 changed files with 643 additions and 1224 deletions

View file

@ -0,0 +1,12 @@
package ecs
import (
"github.com/containous/traefik/types"
)
func (p *Provider) buildConfiguration(services map[string][]ecsInstance) (*types.Configuration, error) {
if p.TemplateVersion == 1 {
return p.buildConfigurationV1(services)
}
return p.buildConfigurationV2(services)
}