Add slack.enabled flag

This commit is contained in:
sergeyshaykhullin 2020-06-22 16:53:24 +03:00
parent f57c359a33
commit 8f69e55a31
6 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,4 @@
{{ if .Values.bots.slack.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
@ -41,3 +42,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Values.bots.slack.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
@ -14,3 +15,4 @@ rules:
- watch
- update
- patch
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Values.bots.slack.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
@ -9,3 +10,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }}
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Values.bots.slack.enabled }}
apiVersion: v1
kind: Service
metadata:
@ -11,3 +12,4 @@ spec:
selector:
{{- include "argocd-notifications.bots.slack.selectorLabels" . | nindent 4 }}
type: {{ .Values.bots.slack.service.type }}
{{ end }}

View file

@ -1,4 +1,4 @@
{{ if .Values.secret.create }}
{{ if and .Values.bots.slack.enabled .Values.secret.create }}
apiVersion: v1
kind: ServiceAccount
metadata:

View file

@ -162,6 +162,9 @@ triggers:
bots:
# For more information: https://argoproj-labs.github.io/argocd-notifications/recipients/bot/
slack:
# You have to set secret.notifiers.slack.signingSecret
enabled: false
updateStrategy:
type: Recreate