argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-cm.yaml
Petr Drastil c8f7efb68f
feat(argo-cd): Move argocd-cm and argocd-rbac-cm to config section (#1528)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-10-25 19:05:38 +02:00

16 lines
528 B
YAML

{{- if (coalesce .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" . | nindent 2 }}
{{- end }}