14 lines
397 B
YAML
14 lines
397 B
YAML
|
|
{{ if .Values.bots.slack.enabled }}
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
kind: RoleBinding
|
||
|
|
metadata:
|
||
|
|
name: {{ include "argocd-notifications.name" . }}-bot
|
||
|
|
roleRef:
|
||
|
|
apiGroup: rbac.authorization.k8s.io
|
||
|
|
kind: Role
|
||
|
|
name: {{ include "argocd-notifications.name" . }}-bot
|
||
|
|
subjects:
|
||
|
|
- kind: ServiceAccount
|
||
|
|
name: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }}
|
||
|
|
{{ end }}
|