argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-cm.yaml

17 lines
567 B
YAML
Raw Normal View History

{{- if (hasKey .Values.server "configEnabled") | ternary .Values.server.configEnabled .Values.configs.cm.create }}
apiVersion: v1
2019-11-04 16:17:25 -08:00
kind: ConfigMap
metadata:
2019-11-04 16:17:25 -08:00
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 }}