argocd-notifications: fix serviceaccount name (#389)

* fix: ArgoCD Notifications - Bot service account

* chore: update argocd-notifications version to 1.0.6
This commit is contained in:
Jonathan Serafini 2020-06-30 20:31:16 -04:00 committed by GitHub
parent 5ca92acda0
commit 7d5d20f615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 4 deletions

View file

@ -20,7 +20,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "argocd-notifications.serviceAccountName" . }}-bot
serviceAccountName: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }}
containers:
- name: {{ include "argocd-notifications.name" . }}-bot
image: "{{ .Values.bots.slack.image.repository }}:{{ .Values.bots.slack.image.tag }}"

View file

@ -15,4 +15,13 @@ rules:
- watch
- update
- patch
- apiGroups:
- ""
resources:
- secrets
- configmaps
verbs:
- get
- list
- watch
{{ end }}

View file

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