fix(argo-cd): Type conversion for ConfigMaps values (#1594)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
90aa8962a0
commit
3eaad42bb4
7 changed files with 18 additions and 16 deletions
|
|
@ -184,7 +184,9 @@ Merge Argo Configuration with Preset Configuration
|
|||
{{- define "argo-cd.config.cm" -}}
|
||||
{{- $config := coalesce .Values.server.config (omit .Values.configs.cm "create" "annotations") -}}
|
||||
{{- $preset := include "argo-cd.config.cm.presets" . | fromYaml | default dict -}}
|
||||
{{- mergeOverwrite $preset $config | toYaml }}
|
||||
{{- range $key, $value := mergeOverwrite $preset $config }}
|
||||
{{ $key }}: {{ toString $value | toYaml }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
|
|
@ -209,8 +211,8 @@ Merge Argo Params Configuration with Preset Configuration
|
|||
*/}}
|
||||
{{- define "argo-cd.config.params" -}}
|
||||
{{- $config := omit .Values.configs.params "annotations" }}
|
||||
{{- $preset := include "argo-cd.config.params.presets" $ | fromYaml | default dict -}}
|
||||
{{- $preset := include "argo-cd.config.params.presets" . | fromYaml | default dict -}}
|
||||
{{- range $key, $value := mergeOverwrite $preset $config }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{ $key }}: {{ toString $value | toYaml }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue