Skip to content

Commit 545d583

Browse files
authored
fix canary routemap template (#1656)
* fix canary routemap template Signed-off-by: Michael Kalantar <[email protected]> * update chart version Signed-off-by: Michael Kalantar <[email protected]> --------- Signed-off-by: Michael Kalantar <[email protected]>
1 parent 5ddd067 commit 545d583

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

charts/release/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: release
3-
version: 0.18.3
3+
version: 0.18.4
44
description: Iter8 supported application release
55
type: application
66
keywords:

charts/release/templates/_deployment-istio.canary.routemap.tpl

+12-12
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ data:
6868
app-version: {{ template "svc.name" $v }}
6969
{{ `{{- end }}` }}
7070
{{- end }} {{- /* range $i, $v := (rest $versions) */}}
71-
# primary version (default)
72-
{{- $v := (index $versions 0) }}
73-
- name: {{ template "svc.name" $v }}
74-
route:
75-
- destination:
76-
host: {{ template "svc.name" $v }}.{{ $APP_NAMESPACE }}.svc.cluster.local
77-
port:
78-
number: {{ $v.port }}
79-
headers:
80-
response:
81-
add:
82-
app-version: {{ template "svc.name" $v }}
71+
# primary version (default)
72+
{{- $v := (index $versions 0) }}
73+
- name: {{ template "svc.name" $v }}
74+
route:
75+
- destination:
76+
host: {{ template "svc.name" $v }}.{{ $APP_NAMESPACE }}.svc.cluster.local
77+
port:
78+
number: {{ $v.port }}
79+
headers:
80+
response:
81+
add:
82+
app-version: {{ template "svc.name" $v }}
8383

8484
{{- end }} {{- /* define "env.deployment-istio.canary.routemap" */}}

0 commit comments

Comments
 (0)