Skip to content

Commit

Permalink
add clusterrole for missing permissions
Browse files Browse the repository at this point in the history
Without them it doesn't work on protected clusters.
  • Loading branch information
Siegfriedk committed Jan 5, 2023
1 parent 19a381e commit ddf1d77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/app-dashboard/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole

metadata:
name: {{ include "app-dashboard.serviceAccountName" . }}-cluster-role

rules:
- apiGroups: ["argoproj.io"]
resources: ["applications"]
verbs: ["list"]
15 changes: 15 additions & 0 deletions charts/app-dashboard/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding

metadata:
name: {{ include "app-dashboard.serviceAccountName" . }}-cluster-role-binding

roleRef:
kind: ClusterRole
name: {{ include "app-dashboard.serviceAccountName" . }}-cluster-role
apiGroup: rbac.authorization.k8s.io

subjects:
- kind: ServiceAccount
name: {{ include "app-dashboard.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}

0 comments on commit ddf1d77

Please sign in to comment.