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