Skip to content

Commit

Permalink
fix canary routemap template (#1656)
Browse files Browse the repository at this point in the history
* fix canary routemap template

Signed-off-by: Michael Kalantar <kalantar@us.ibm.com>

* update chart version

Signed-off-by: Michael Kalantar <kalantar@us.ibm.com>

---------

Signed-off-by: Michael Kalantar <kalantar@us.ibm.com>
  • Loading branch information
kalantar committed Dec 13, 2023
1 parent 5ddd067 commit 545d583
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/release/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: release
version: 0.18.3
version: 0.18.4
description: Iter8 supported application release
type: application
keywords:
Expand Down
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 545d583

Please sign in to comment.