File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ the RBAC rules that grant the Agent access.
151
151
152
152
The Sync Agent needs to
153
153
154
+ * access the workspace of its `APIExport`,
155
+ * get the `LogicalCluster`,
154
156
* manage its `APIExport`,
155
157
* manage `APIResourceSchemas` and
156
158
* access the virtual workspace for its `APIExport`.
@@ -163,6 +165,15 @@ kind: ClusterRole
163
165
metadata:
164
166
name: api-syncagent-mango
165
167
rules:
168
+ # get the LogicalCluster
169
+ - apiGroups:
170
+ - core.kcp.io
171
+ resources:
172
+ - logicalclusters
173
+ resourceNames:
174
+ - cluster
175
+ verbs:
176
+ - get
166
177
# manage its APIExport
167
178
- apiGroups:
168
179
- apis.kcp.io
@@ -200,14 +211,27 @@ rules:
200
211
apiVersion: rbac.authorization.k8s.io/v1
201
212
kind: ClusterRoleBinding
202
213
metadata:
203
- name: api-syncagent-columbo: mango- system
214
+ name: api-syncagent-mango: system
204
215
roleRef:
205
216
apiGroup: rbac.authorization.k8s.io
206
217
kind: ClusterRole
207
218
name: api-syncagent-mango
208
219
subjects:
209
220
- kind: User
210
221
name: api-syncagent-mango
222
+
223
+ ---
224
+ apiVersion: rbac.authorization.k8s.io/v1
225
+ kind: ClusterRoleBinding
226
+ metadata:
227
+ name: api-syncagent-mango:access
228
+ roleRef:
229
+ apiGroup: rbac.authorization.k8s.io
230
+ kind: ClusterRole
231
+ name: system:kcp:workspace:access
232
+ subjects:
233
+ - kind: User
234
+ name: api-syncagent-mango
211
235
` ` `
212
236
213
237
# # Publish Resources
You can’t perform that action at this time.
0 commit comments