Skip to content

Commit 2f03b0a

Browse files
committed
add permissions for pods and job
Signed-off-by: Swati Gupta <[email protected]>
1 parent ed7dcca commit 2f03b0a

File tree

1 file changed

+6
-0
lines changed
  • deployments/helm/k8s-dra-driver/templates

1 file changed

+6
-0
lines changed

deployments/helm/k8s-dra-driver/templates/role.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
name: {{ include "k8s-dra-driver.fullname" . }}-role
66
namespace: {{ include "k8s-dra-driver.namespace" . }}
77
rules:
8+
- apiGroups: [""]
9+
resources: ["pods"]
10+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
811
- apiGroups: ["apps"]
912
resources: ["deployments"]
1013
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
14+
- apiGroups: ["batch"]
15+
resources: ["jobs"]
16+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]

0 commit comments

Comments
 (0)