Skip to content

Commit 012133d

Browse files
alexouzounisouzibot
authored andcommitted
fix: update rbac (#28)
* fix: update rbac * fix: remove hardcoded ns
1 parent ba63699 commit 012133d

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

prow/templates/crier-rbac.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
kind: ClusterRole
77
apiVersion: rbac.authorization.k8s.io/v1
88
metadata:
9+
# "namespace" omitted since ClusterRoles are not namespaced
910
name: crier
1011
rules:
1112
- apiGroups:

prow/templates/deck-rbac.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ rules:
1515
verbs:
1616
- get
1717
- list
18+
- watch
19+
# Required when deck runs with `--rerun-creates-job=true`
20+
- create
1821
---
1922
kind: RoleBinding
2023
apiVersion: rbac.authorization.k8s.io/v1beta1

prow/templates/plank-rbac.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ rules:
3333
- create
3434
- delete
3535
- list
36-
- patch
3736
---
3837
kind: RoleBinding
3938
apiVersion: rbac.authorization.k8s.io/v1beta1

prow/templates/sinker-rbac.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ rules:
1515
verbs:
1616
- delete
1717
- list
18+
- watch
19+
- get
20+
- apiGroups:
21+
- ""
22+
resources:
23+
- configmaps
24+
resourceNames:
25+
- prow-sinker-leaderlock
26+
verbs:
27+
- get
28+
- update
29+
- apiGroups:
30+
- ""
31+
resources:
32+
- configmaps
33+
- events
34+
verbs:
35+
- create
1836
---
1937
kind: Role
2038
apiVersion: rbac.authorization.k8s.io/v1beta1

0 commit comments

Comments
 (0)