argocd-helm/charts/argocd-notifications/templates/bots/slack/role.yaml
Sergey 4e0bf1e19d
fix(argocd-notifications): Changes to rules RBAC role. (#697)
add role resourceNames argoproj-labs/argocd-notifications#199
allow configmap/secret list verb argoproj-labs/argocd-notifications#244

Signed-off-by: 1Psy <41047934+1Psy@users.noreply.github.com>
2021-04-26 20:55:12 +02:00

27 lines
399 B
YAML

{{ if .Values.bots.slack.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "argocd-notifications.name" . }}-bot
rules:
- apiGroups:
- ""
resources:
- secrets
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- argoproj.io
resources:
- applications
- appprojects
verbs:
- get
- list
- watch
- update
- patch
{{ end }}