argocd-helm/charts/argocd-notifications/templates/configmap.yaml
Geoffrey Gouez d40a9be810
feat(argocd-notifications): Optional ConfigMap for argocd-notifications (#656)
* feat(argocd-notifications): Optional ConfigMap for argocd-notifications

Signed-off-by: Cicatrice <cicatrice@cicatrice.eu>

* feat(argocd-notifications): version bump

Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
Signed-off-by: Cicatrice <cicatrice@cicatrice.eu>

Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
2021-04-26 23:38:11 +02:00

24 lines
No EOL
602 B
YAML

{{ if .Values.cm.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "argocd-notifications.name" . }}-cm
labels:
{{- include "argocd-notifications.labels" . | nindent 4 }}
data:
context: |
argocdUrl: {{ .Values.argocdUrl | quote }}
{{- with .Values.notifiers }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.subscriptions }}
subscriptions: |
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.templates }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.triggers }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}