Skip to content

Commit 4bf527b

Browse files
committed
feat(role-job-read.yml): Allow default user to access job state (for wait for completion in init container)
1 parent 7bea9a3 commit 4bf527b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

role-job-read.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
name: job-read
5+
rules:
6+
- apiGroups: ["batch"]
7+
resources: ["jobs"]
8+
verbs:
9+
- "get"
10+
- "list"
11+
- "watch"
12+
---
13+
apiVersion: rbac.authorization.k8s.io/v1
14+
kind: RoleBinding
15+
metadata:
16+
name: default-job-read
17+
roleRef:
18+
apiGroup: rbac.authorization.k8s.io
19+
kind: Role
20+
name: job-read
21+
subjects:
22+
- kind: ServiceAccount
23+
name: default

0 commit comments

Comments
 (0)