Skip to content

Commit 47fe3e5

Browse files
Alex Jean-Baptiste Jrenriquegh
authored andcommitted
Modified exector role for necessary cluster permissions
1 parent 3121258 commit 47fe3e5

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

charts/sourcegraph-executor/k8s/templates/executor.Role.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,22 @@
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: Role
44
metadata:
5-
name: sg-executor-role
5+
name: executor
66
labels:
7-
category: rbac
87
deploy: sourcegraph
9-
sourcegraph-resource-requires: cluster-admin
108
app.kubernetes.io/component: executor
119
rules:
12-
- apiGroups:
13-
- batch
14-
resources:
15-
- jobs
16-
verbs:
17-
- create
18-
- delete
1910
- apiGroups:
2011
- ""
2112
resources:
2213
- pods
2314
- pods/log
15+
- secrets
16+
- persistentvolumeclaims
2417
verbs:
2518
- get
2619
- list
2720
- watch
28-
- apiGroups:
29-
- ""
30-
resources:
31-
- secrets
32-
verbs:
3321
- create
3422
- delete
3523
{{- end }}

0 commit comments

Comments
 (0)