argocd-helm/charts/argo-cd/templates/argocd-notifications/role.yaml
Gabriele 6f8aea3750
fix(argo-cd): fix argo-cd notifications resource names in role (#1340)
* fix(argo-cd): fix argo-cd notifications resource names in role

Signed-off-by: Gabriele Diener <gabriele.diener@klarna.com>

* fix(argo-cd): fix chart version

Signed-off-by: Gabriele Diener <gabriele.diener@klarna.com>
2022-06-23 16:43:30 +02:00

44 lines
822 B
YAML

{{- if .Values.notifications.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "argo-cd.notifications.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
rules:
- apiGroups:
- argoproj.io
resources:
- applications
- appprojects
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- ""
resources:
- configmaps
- secrets
verbs:
- list
- watch
- apiGroups:
- ""
resourceNames:
- {{ include "argo-cd.notifications.configMapName" . }}
resources:
- configmaps
verbs:
- get
- apiGroups:
- ""
resourceNames:
- {{ include "argo-cd.notifications.secretName" . }}
resources:
- secrets
verbs:
- get
{{- end }}