Skip to content

Commit

Permalink
fix canary routemap template
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kalantar <[email protected]>
  • Loading branch information
kalantar committed Dec 13, 2023
1 parent 5ddd067 commit 29dc9d8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions charts/release/templates/_deployment-istio.canary.routemap.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" */}}

0 comments on commit 29dc9d8

Please sign in to comment.