fix(argo-cd): skip empty configmap params (#1892)
This commit is contained in:
parent
832a1e5c10
commit
71f61651ae
2 changed files with 6 additions and 3 deletions
|
|
@ -174,7 +174,10 @@ Merge Argo Configuration with Preset Configuration
|
|||
{{- $config := (mergeOverwrite (deepCopy (omit .Values.configs.cm "create" "annotations")) (.Values.server.config | default dict)) -}}
|
||||
{{- $preset := include "argo-cd.config.cm.presets" . | fromYaml | default dict -}}
|
||||
{{- range $key, $value := mergeOverwrite $preset $config }}
|
||||
{{ $key }}: {{ toString $value | toYaml }}
|
||||
{{- $fmted := $value | toString }}
|
||||
{{- if not (eq $fmted "") }}
|
||||
{{ $key }}: {{ $fmted | toYaml }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue