mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-21 00:24:08 +00:00
Merge pull request #136 from elgnay/add-permission
grant work-agent the permission to update namespace
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