2022-03-18 16:41:56 +00:00
|
|
|
{{- if and .Values.notifications.enabled .Values.notifications.cm.create }}
|
2022-03-16 21:01:30 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2022-08-25 10:12:51 +00:00
|
|
|
name: argocd-notifications-cm
|
2024-05-14 15:17:31 +00:00
|
|
|
namespace: {{ include "argo-cd.namespace" . }}
|
2022-03-16 21:01:30 +00:00
|
|
|
labels:
|
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
|
|
|
data:
|
|
|
|
context: |
|
2024-02-16 14:44:51 +00:00
|
|
|
argocdUrl: {{ .Values.notifications.argocdUrl | default (printf "https://%s" .Values.global.domain) }}
|
2022-09-21 07:32:06 +00:00
|
|
|
{{- with .Values.notifications.context }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-03-16 21:01:30 +00:00
|
|
|
{{- with .Values.notifications.notifiers }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.notifications.subscriptions }}
|
|
|
|
subscriptions: |
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.notifications.templates }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.notifications.triggers }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|