* feat(argo-cd) Adding applicationSet.enable and notifications.enable to allow to disable them Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Fixing Chart version and redudant ifs Signed-off-by: Eric Durand eric_p_durand@yahoo.com Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Detail the change Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Drop one more redundant if Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
27 lines
895 B
YAML
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 }}
|