feat(argocd-notifications): update to support argocd-notification v1.0.1 (#567)
Signed-off-by: George Kaz <egeorgekaz@gmail.com>
This commit is contained in:
parent
dee9f7de62
commit
ba467c8a4b
6 changed files with 286 additions and 172 deletions
|
|
@ -7,33 +7,7 @@ metadata:
|
|||
{{- 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 }}
|
||||
{{- with .Values.secret.items }}
|
||||
{{ toYaml . | indent 2 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue