Skip to content

Commit

Permalink
Move quoting to where it's actually used.
Browse files Browse the repository at this point in the history
  • Loading branch information
ainmosni committed Jun 6, 2023
1 parent b6d13ed commit 516ce46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/ocis/templates/_common/_tplvalues.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ data:
{{- $secretObj := (lookup "v1" "Secret" .scope.Release.Namespace .name) | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
{{- range $key, $value := .params }}
{{- $secretValue := (get $secretData $key | quote) | default ($value | b64enc | quote)}}
{{ $key }}: {{ $secretValue }}
{{- $secretValue := (get $secretData $key) | default ($value | b64enc)}}
{{ $key }}: {{ $secretValue | quote }}
{{- end }}
{{- end -}}

Expand All @@ -287,7 +287,7 @@ data:
{{- $configObj := (lookup "v1" "ConfigMap" .scope.Release.Namespace .name) | default dict }}
{{- $configData := (get $configObj "data") | default dict }}
{{- range $key, $value := .params }}
{{- $configValue := (get $configData $key | quote) | default ($value | quote)}}
{{ $key }}: {{ $configValue }}
{{- $configValue := (get $configData $key) | default ($value)}}
{{ $key }}: {{ $configValue | quote }}
{{- end }}
{{- end -}}

0 comments on commit 516ce46

Please sign in to comment.