mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 01:07:03 +00:00
leader election needs to operate configmaps and leases (#261)
Signed-off-by: haoqing0110 <qhao@redhat.com>
This commit is contained in:
@@ -6,6 +6,14 @@ metadata:
|
||||
name: open-cluster-management:registration-agent
|
||||
namespace: open-cluster-management-agent
|
||||
rules:
|
||||
# leader election needs to operate configmaps and leases
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["create", "get", "list", "update", "watch", "patch"]
|
||||
# create hub-kubeconfig and external-managed-registration/work secrets
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
||||
|
||||
Reference in New Issue
Block a user