File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed
cluster/manifests/role-sync-controller Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ apiVersion: batch/v1
3
3
kind : CronJob
4
4
metadata :
5
5
name : role-sync-controller
6
+ namespace : kube-system
6
7
labels :
7
8
application : kubernetes
8
9
component : role-sync-controller
17
18
containers :
18
19
- name : role-sync-controller
19
20
image : container-registry.zalando.net/teapot/role-sync-controller:main-1
20
- imagePullPolicy : IfNotPresent
21
21
{{ end }}
Original file line number Diff line number Diff line change
1
+ {{ if .Cluster.ConfigItems.role_sync_controller_enabled "true" }}
2
+ 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
18
+ kind : ClusterRoleBinding
19
+ metadata :
20
+ name : role-sync-controller
21
+ labels :
22
+ application : kubernetes
23
+ component : role-sync-controller
24
+ roleRef :
25
+ apiGroup : rbac.authorization.k8s.io
26
+ kind : ClusterRole
27
+ name : role-sync-controller
28
+ subjects :
29
+ - kind : ServiceAccount
30
+ name : role-sync-controller
31
+ namespace : kube-system
32
+ {{ end }}
Original file line number Diff line number Diff line change
1
+ {{ if .Cluster.ConfigItems.role_sync_controller_enabled "true" }}
2
+ apiVersion : v1
3
+ kind : ServiceAccount
4
+ metadata :
5
+ name : role-sync-controller
6
+ namespace : kube-system
7
+ labels :
8
+ application : kubernetes
9
+ component : role-sync-controller
10
+ {{ end }}
You can’t perform that action at this time.
0 commit comments