From 29dc9d8bf3251c45b7587e405c5bd9906f60b0f9 Mon Sep 17 00:00:00 2001 From: Michael Kalantar Date: Wed, 13 Dec 2023 12:03:38 -0500 Subject: [PATCH] fix canary routemap template Signed-off-by: Michael Kalantar --- .../_deployment-istio.canary.routemap.tpl | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/charts/release/templates/_deployment-istio.canary.routemap.tpl b/charts/release/templates/_deployment-istio.canary.routemap.tpl index ac513803d..c47607983 100644 --- a/charts/release/templates/_deployment-istio.canary.routemap.tpl +++ b/charts/release/templates/_deployment-istio.canary.routemap.tpl @@ -68,17 +68,17 @@ data: app-version: {{ template "svc.name" $v }} {{ `{{- end }}` }} {{- end }} {{- /* range $i, $v := (rest $versions) */}} - # primary version (default) - {{- $v := (index $versions 0) }} - - name: {{ template "svc.name" $v }} - route: - - destination: - host: {{ template "svc.name" $v }}.{{ $APP_NAMESPACE }}.svc.cluster.local - port: - number: {{ $v.port }} - headers: - response: - add: - app-version: {{ template "svc.name" $v }} + # primary version (default) + {{- $v := (index $versions 0) }} + - name: {{ template "svc.name" $v }} + route: + - destination: + host: {{ template "svc.name" $v }}.{{ $APP_NAMESPACE }}.svc.cluster.local + port: + number: {{ $v.port }} + headers: + response: + add: + app-version: {{ template "svc.name" $v }} {{- end }} {{- /* define "env.deployment-istio.canary.routemap" */}}