From 95ec04a00573d9b587d9f19c55451b70e930c6ae Mon Sep 17 00:00:00 2001 From: JenTing Hsiao Date: Thu, 14 Jul 2022 12:48:58 +0000 Subject: [PATCH] [installer] add node get/list permission to ws-manager Signed-off-by: JenTing Hsiao --- install/installer/pkg/components/ws-manager/role.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/installer/pkg/components/ws-manager/role.go b/install/installer/pkg/components/ws-manager/role.go index 1d56f5744fbb62..b04e0d1fffbfee 100644 --- a/install/installer/pkg/components/ws-manager/role.go +++ b/install/installer/pkg/components/ws-manager/role.go @@ -24,6 +24,16 @@ func role(ctx *common.RenderContext) ([]runtime.Object, error) { Labels: labels, }, Rules: []rbacv1.PolicyRule{ + { + APIGroups: []string{""}, + Resources: []string{ + "nodes", + }, + Verbs: []string{ + "get", + "list", + }, + }, { APIGroups: []string{"snapshot.storage.k8s.io"}, Resources: []string{