File tree Expand file tree Collapse file tree 2 files changed +20
-39
lines changed
charts/init-agent/templates Expand file tree Collapse file tree 2 files changed +20
-39
lines changed Original file line number Diff line number Diff line change @@ -38,56 +38,30 @@ kind: ClusterRole
3838metadata :
3939 name : ' {{ template "name" . }}:{{ .Release.Namespace }}'
4040rules :
41+ # provide access to this workspace
42+ - verbs :
43+ - access
44+ nonResourceURLs :
45+ - " /"
46+
47+ # allow to read the init-agent's own resources
4148 - apiGroups :
42- - " "
43- resources :
44- - events
45- verbs :
46- - create
47- - patch
48- - apiGroups :
49- - " "
49+ - initialization.kcp.io
5050 resources :
51- - secrets
51+ - inittargets
52+ - inittemplates
5253 verbs :
5354 - get
5455 - list
5556 - watch
56- - create
57- - update
57+
58+ # allow to issue events on the cluster-scoped init-agent resources
5859 - apiGroups :
5960 - " "
6061 resources :
61- - namespaces
62- verbs :
63- - get
64- - list
65- - watch
66- - create
67- - apiGroups :
68- - apiextensions.k8s.io
69- resources :
70- - customresourcedefinitions
71- verbs :
72- - get
73- - list
74- - watch
75- - apiGroups :
76- - syncagent.kcp.io
77- resources :
78- - publishedresources
79- verbs :
80- - get
81- - list
82- - watch
83- - apiGroups :
84- - syncagent.kcp.io
85- resources :
86- - publishedresources/status
62+ - events
8763 verbs :
8864 - create
89- - get
90- - update
9165 - patch
9266
9367---
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ kind: ClusterRole
44metadata :
55 name : ' kcp-init-agent:{{ template "name" . }}'
66rules :
7+ # provide access to this workspace
8+ - verbs :
9+ - access
10+ nonResourceURLs :
11+ - " /"
12+
13+ # allow to watch and initialize WorkspaceTypes
714 - apiGroups :
815 - tenancy.kcp.io
916 resources :
You can’t perform that action at this time.
0 commit comments