fix(argo-cd): Replace coalesce with merge for old config values (#1612)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
82b726bab5
commit
579f11407a
4 changed files with 6 additions and 6 deletions
|
|
@ -182,7 +182,7 @@ ui.cssurl: "./custom/custom.styles.css"
|
|||
Merge Argo Configuration with Preset Configuration
|
||||
*/}}
|
||||
{{- define "argo-cd.config.cm" -}}
|
||||
{{- $config := coalesce .Values.server.config (omit .Values.configs.cm "create" "annotations") -}}
|
||||
{{- $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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue