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
|
2023-04-13 16:08:34 +02:00
|
|
|
namespace: {{ .Release.Namespace | quote }}
|
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-11-01 15:57:19 +01:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.configs.cm.annotations) (.Values.server.configAnnotations | default dict)) }}
|
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-29 21:08:16 +02:00
|
|
|
{{- include "argo-cd.config.cm" . | trim | nindent 2 }}
|
2022-09-21 09:32:06 +02:00
|
|
|
{{- end }}
|