refactor(ecs): add hasLoadBalancerLabel function.
This commit is contained in:
parent
722ea28e3a
commit
07a6d48a27
3 changed files with 12 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
[backends]
|
||||
{{range $serviceName, $instances := .Services}}
|
||||
|
||||
{{if hasLoadBalancerLabel $instances}}
|
||||
[backends.backend-{{ $serviceName }}.loadBalancer]
|
||||
method = "{{ getLoadBalancerMethod $instances}}"
|
||||
sticky = {{ getSticky $instances}}
|
||||
|
@ -8,6 +9,7 @@
|
|||
[backends.backend-{{ $serviceName }}.loadBalancer.stickiness]
|
||||
cookieName = "{{getStickinessCookieName $instances}}"
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{ if hasHealthCheckLabels $instances }}
|
||||
[backends.backend-{{ $serviceName }}.healthCheck]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue