2022-10-29 11:23:40 +02:00
|
|
|
{{- if (hasKey .Values.server "configEnabled") | ternary .Values.server.configEnabled .Values.configs.cm.create }}
|
2019-02-14 00:22:11 +02:00
|
|
|
apiVersion: v1
|
2019-11-04 16:17:25 -08:00
|
|
|
kind: ConfigMap
|
2019-02-14 00:22:11 +02:00
|
|
|
metadata:
|
2019-11-04 16:17:25 -08:00
|
|
|
name: argocd-cm
|
2019-02-14 00:22:11 +02:00
|
|
|
labels:
|
2021-03-22 21:15:37 +01:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" "cm") | nindent 4 }}
|
2022-10-25 19:05:38 +02:00
|
|
|
{{- with (coalesce .Values.server.configAnnotations .Values.configs.cm.annotations) }}
|
2020-07-12 16:56:48 +02:00
|
|
|
annotations:
|
2022-09-21 09:32:06 +02:00
|
|
|
{{- range $key, $value := . }}
|
2020-07-12 16:56:48 +02:00
|
|
|
{{ $key }}: {{ $value | quote }}
|
2022-09-21 09:32:06 +02:00
|
|
|
{{- end }}
|
2020-07-12 16:56:48 +02:00
|
|
|
{{- end }}
|
2022-09-21 09:32:06 +02:00
|
|
|
data:
|
2022-10-25 19:05:38 +02:00
|
|
|
{{- include "argo-cd.config.cm" . | nindent 2 }}
|
2022-09-21 09:32:06 +02:00
|
|
|
{{- end }}
|