* Add email notifier configuration to argocd-notifications chart * Bump version in chart * Quote strings in argocd-notifications email notifier Co-authored-by: Domenico Commisso <dcommisso@users.noreply.github.com>
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
{{ if .Values.secret.create }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "argocd-notifications.name" . }}-secret
|
|
labels:
|
|
{{- include "argocd-notifications.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
stringData:
|
|
notifiers.yaml: |
|
|
{{- if .Values.secret.notifiers.slack.enabled }}
|
|
slack:
|
|
token: {{ .Values.secret.notifiers.slack.token }}
|
|
username: {{ .Values.secret.notifiers.slack.username }}
|
|
icon: {{ .Values.secret.notifiers.slack.icon | quote }}
|
|
signingSecret: {{ .Values.secret.notifiers.slack.signingSecret }}
|
|
{{- end }}
|
|
{{- if .Values.secret.notifiers.grafana.enabled }}
|
|
grafana:
|
|
apiUrl: {{ .Values.secret.notifiers.grafana.apiUrl }}
|
|
apiKey: {{ .Values.secret.notifiers.grafana.apiKey }}
|
|
{{- end }}
|
|
{{- if .Values.secret.notifiers.webhooks }}
|
|
webhook:
|
|
{{- range $k, $v := .Values.secret.notifiers.webhooks }}
|
|
- name: {{ $k }}
|
|
{{- $v | toYaml | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.secret.notifiers.email.enabled }}
|
|
email:
|
|
host: {{ .Values.secret.notifiers.email.host | quote }}
|
|
port: {{ .Values.secret.notifiers.email.port }}
|
|
insecure_skip_verify: {{ .Values.secret.notifiers.email.insecure_skip_verify }}
|
|
username: {{ .Values.secret.notifiers.email.username | quote }}
|
|
password: {{ .Values.secret.notifiers.email.password | quote }}
|
|
from: {{ .Values.secret.notifiers.email.from | quote }}
|
|
{{- end }}
|
|
{{ end }}
|