argocd-helm/charts/argo-cd/templates/argocd-notifications/configmap.yaml
Aikawa 3c2ca2cdbe
chore(argocd): update notification notifiers' comment (#1222)
* Revert "feat(argo-cd): Add ability to set Notification Services (#1220)"

This reverts commit 7932e5a460.
Signed-off-by: yu-croco <yuki.kita22@gmail.com>

* chore(argocd): update comment to clarify usecase

Signed-off-by: yu-croco <yuki.kita22@gmail.com>
2022-04-12 15:28:04 +01:00

27 lines
895 B
YAML

{{- if and .Values.notifications.enabled .Values.notifications.cm.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "argo-cd.notifications.configMapName" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
data:
context: |
argocdUrl: {{ .Values.notifications.argocdUrl | quote }}
{{- with .Values.notifications.context }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- 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 }}