Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kalantar <kalantar@us.ibm.com>
  • Loading branch information
kalantar committed Sep 26, 2023
1 parent 7c42911 commit 73d653e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/routing-actions/templates/_deployment.routemap-bg.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ data:
- {{ .Values.appName }}.{{ .Release.Namespace }}.svc.cluster.local
http:
- route:
# primary model
# primary version
- destination:
host: {{ (index $versions 0).name }}.{{ .Release.Namespace }}.svc.cluster.local
{{- if .Values.appPort }}
Expand All @@ -56,7 +56,7 @@ data:
response:
add:
app-version: {{ (index $versions 0).name }}
# other models
# other versions
{{- range $i, $v := (rest $versions) }}
{{ `{{- if gt (index .Weights ` }}{{ print (add1 $i) }}{{ `) 0 }}`}}
- destination:
Expand Down
7 changes: 2 additions & 5 deletions charts/routing-actions/templates/traffic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
{{- printf "Unknown appType: '%s'" .Values.appType | fail }}
{{- end }}

{{- /* set default strategy */}}
{{- $strategy := "none" }}
{{- if .Values.strategy }}
{{- $strategy := .Values.strategy }}
{{- end }}
{{- /* set strategy using default value if needed */}}
{{- $strategy := (.Values.strategy | default "none" ) }}

{{- /* validate values for strategy */}}
{{- if not (has $strategy (list "blue-green" "canary" "none")) }}
Expand Down

0 comments on commit 73d653e

Please sign in to comment.