argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-cm.yaml
Petr Drastil 3eaad42bb4
fix(argo-cd): Type conversion for ConfigMaps values (#1594)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-10-29 21:08:16 +02:00

16 lines
574 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 (coalesce .Values.server.configAnnotations .Values.configs.cm.annotations) }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
data:
{{- include "argo-cd.config.cm" . | trim | nindent 2 }}
{{- end }}