refactor: ECS labels.
This commit is contained in:
parent
5921909ef5
commit
46db91ce73
9 changed files with 643 additions and 1224 deletions
12
provider/ecs/config_root.go
Normal file
12
provider/ecs/config_root.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue