argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-cm.yaml
Petr Drastil 579f11407a
fix(argo-cd): Replace coalesce with merge for old config values (#1612)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-11-01 15:57:19 +01:00

16 lines
608 B
YAML

{{- if (hasKey .Values.server "configEnabled") | ternary .Values.server.configEnabled .Values.configs.cm.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" "cm") | nindent 4 }}
{{- with (mergeOverwrite (deepCopy .Values.configs.cm.annotations) (.Values.server.configAnnotations | default dict)) }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
data:
{{- include "argo-cd.config.cm" . | trim | nindent 2 }}
{{- end }}