2020-06-09 14:33:29 -04:00
|
|
|
{{ 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 }}
|
2020-06-27 01:38:12 +03:00
|
|
|
icon: {{ .Values.secret.notifiers.slack.icon | quote }}
|
2020-06-23 23:40:18 +03:00
|
|
|
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 }}
|
2020-06-09 14:33:29 -04:00
|
|
|
{{- end }}
|
2020-06-19 15:25:11 -07:00
|
|
|
{{- if .Values.secret.notifiers.webhooks }}
|
|
|
|
|
webhook:
|
|
|
|
|
{{- range $k, $v := .Values.secret.notifiers.webhooks }}
|
|
|
|
|
- name: {{ $k }}
|
|
|
|
|
{{- $v | toYaml | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
2020-06-09 14:33:29 -04:00
|
|
|
{{ end }}
|