Fix stickiness bug due to template syntax error
This commit is contained in:
parent
b4dc96527d
commit
3142a4f4b3
2 changed files with 2 additions and 2 deletions
|
@ -532,7 +532,7 @@ var _templatesKvTmpl = []byte(`{{$frontends := List .Prefix "/frontends/" }}
|
||||||
sticky = {{ getSticky . }}
|
sticky = {{ getSticky . }}
|
||||||
{{if hasStickinessLabel $backend}}
|
{{if hasStickinessLabel $backend}}
|
||||||
[backends."{{$backendName}}".loadBalancer.stickiness]
|
[backends."{{$backendName}}".loadBalancer.stickiness]
|
||||||
cookieName = {{getStickinessCookieName $backend}}
|
cookieName = "{{getStickinessCookieName $backend}}"
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
sticky = {{ getSticky . }}
|
sticky = {{ getSticky . }}
|
||||||
{{if hasStickinessLabel $backend}}
|
{{if hasStickinessLabel $backend}}
|
||||||
[backends."{{$backendName}}".loadBalancer.stickiness]
|
[backends."{{$backendName}}".loadBalancer.stickiness]
|
||||||
cookieName = {{getStickinessCookieName $backend}}
|
cookieName = "{{getStickinessCookieName $backend}}"
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue