mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-14 13:17:39 +00:00
Merge pull request #47 from qiujian16/work-clusterrole
Clusterrole on hub should be able to monitor manifestworks
This commit is contained in:
@@ -38,3 +38,7 @@ rules:
|
||||
- apiGroups: ["cluster.open-cluster-management.io"]
|
||||
resources: ["managedclusters/status"]
|
||||
verbs: ["update", "patch"]
|
||||
# Allow hub to monitor manifestworks
|
||||
- apiGroups: ["work.open-cluster-management.io"]
|
||||
resources: ["manifestworks"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
|
||||
@@ -582,6 +582,10 @@ rules:
|
||||
- apiGroups: ["cluster.open-cluster-management.io"]
|
||||
resources: ["managedclusters/status"]
|
||||
verbs: ["update", "patch"]
|
||||
# Allow hub to monitor manifestworks
|
||||
- apiGroups: ["work.open-cluster-management.io"]
|
||||
resources: ["manifestworks"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
`)
|
||||
|
||||
func manifestsClusterManagerClusterManagerRegistrationClusterroleYamlBytes() ([]byte, error) {
|
||||
|
||||
Reference in New Issue
Block a user