Fix buildupstream name to work with dynamic session affinity

This commit is contained in:
Zenara Daley 2018-04-12 14:01:46 -04:00
parent 353c63153e
commit 4b76ad14bb
3 changed files with 54 additions and 10 deletions

View file

@ -886,7 +886,7 @@ stream {
{{ if $all.Cfg.EnableVtsStatus }}{{ if $location.VtsFilterKey }} vhost_traffic_status_filter_by_set_key {{ $location.VtsFilterKey }};{{ end }}{{ end }}
set $proxy_upstream_name "{{ buildUpstreamName $server.Hostname $all.Backends $location }}";
set $proxy_upstream_name "{{ buildUpstreamName $server.Hostname $all.Backends $location $all.DynamicConfigurationEnabled }}";
{{ $ing := (getIngressInformation $location.Ingress $location.Path) }}
{{/* $ing.Metadata contains the Ingress metadata */}}