Skip to content

Commit 2ffcfd3

Browse files
authored
Merge pull request #8488 from zalando-incubator/fix-role-sync-rbac
fix RBAC for role-sync-controller
2 parents d17946a + 810ec8d commit 2ffcfd3

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

cluster/manifests/deletions.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ post_apply:
324324
- name: role-sync-controller
325325
kind: CronJob
326326
namespace: kube-system
327-
- name: role-sync-controller
328-
kind: ClusterRole
329327
- name: role-sync-controller
330328
kind: ClusterRoleBinding
331329
- name: role-sync-controller

cluster/manifests/role-sync-controller/rbac.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
{{ if eq .Cluster.ConfigItems.role_sync_controller_enabled "true" }}
22
apiVersion: rbac.authorization.k8s.io/v1
3-
kind: ClusterRole
4-
metadata:
5-
name: role-sync-controller
6-
labels:
7-
application: kubernetes
8-
component: role-sync-controller
9-
rules:
10-
- apiGroups: [""]
11-
resources: ["namespaces"]
12-
verbs: ["list"]
13-
- apiGroups: ["rbac.authorization.k8s.io"]
14-
resources: ["rolebindings"]
15-
verbs: ["get", "create", "update"]
16-
---
17-
apiVersion: rbac.authorization.k8s.io/v1
183
kind: ClusterRoleBinding
194
metadata:
205
name: role-sync-controller
@@ -24,7 +9,7 @@ metadata:
249
roleRef:
2510
apiGroup: rbac.authorization.k8s.io
2611
kind: ClusterRole
27-
name: role-sync-controller
12+
name: poweruser
2813
subjects:
2914
- kind: ServiceAccount
3015
name: role-sync-controller

0 commit comments

Comments
 (0)