mirror of
https://github.com/containous/traefik.git
synced 2025-11-08 00:23:53 +03:00
Missing Backend key in configuration when application has no tasks
This commit is contained in:
@@ -93,7 +93,9 @@ func TestMarathonLoadConfigNonAPIErrors(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
expectedBackends: nil,
|
expectedBackends: map[string]*types.Backend{
|
||||||
|
"backend-app": {},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
desc: "load balancer / circuit breaker labels",
|
desc: "load balancer / circuit breaker labels",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
{{range $app := $apps}}
|
{{range $app := $apps}}
|
||||||
{{range $serviceIndex, $serviceName := getServiceNames $app}}
|
{{range $serviceIndex, $serviceName := getServiceNames $app}}
|
||||||
|
[backends."backend{{getBackend $app $serviceName }}"]
|
||||||
{{ if hasMaxConnLabels $app }}
|
{{ if hasMaxConnLabels $app }}
|
||||||
[backends."backend{{getBackend $app $serviceName }}".maxconn]
|
[backends."backend{{getBackend $app $serviceName }}".maxconn]
|
||||||
amount = {{getMaxConnAmount $app }}
|
amount = {{getMaxConnAmount $app }}
|
||||||
|
|||||||
Reference in New Issue
Block a user