mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-20 16:14:23 +00:00
grant work-agent the permission to update namespace
Signed-off-by: Yang Le <yangle@redhat.com>
This commit is contained in:
@@ -8,10 +8,10 @@ rules:
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update"]
|
||||
# Allow agent to create/delete namespaces, get/list are contained in admin role already
|
||||
# Allow agent to create/update/patch/delete namespaces, get/list/watch are contained in admin role already
|
||||
- apiGroups: [""]
|
||||
resources: ["namespaces"]
|
||||
verbs: ["create", "delete"]
|
||||
verbs: ["create", "update", "patch", "delete"]
|
||||
# Allow agent to manage role/rolebinding/clusterrole/clusterrolebinding
|
||||
- apiGroups: ["rbac.authorization.k8s.io"]
|
||||
resources: ["clusterrolebindings", "rolebindings"]
|
||||
|
||||
@@ -728,10 +728,10 @@ rules:
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update"]
|
||||
# Allow agent to create/delete namespaces, get/list are contained in admin role already
|
||||
# Allow agent to create/update/patch/delete namespaces, get/list/watch are contained in admin role already
|
||||
- apiGroups: [""]
|
||||
resources: ["namespaces"]
|
||||
verbs: ["create", "delete"]
|
||||
verbs: ["create", "update", "patch", "delete"]
|
||||
# Allow agent to manage role/rolebinding/clusterrole/clusterrolebinding
|
||||
- apiGroups: ["rbac.authorization.k8s.io"]
|
||||
resources: ["clusterrolebindings", "rolebindings"]
|
||||
|
||||
Reference in New Issue
Block a user