From 7780ea88db8a513e1dd4c7fa0880adfdfb6f2e26 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Thu, 14 Nov 2024 10:32:10 +0800 Subject: [PATCH] feat(checker): add deployments to clusterrole longhorn/longhorn-9752 Signed-off-by: Chin-Ya Huang --- pkg/remote/preflight/checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/remote/preflight/checker.go b/pkg/remote/preflight/checker.go index 490ed67b..48c11169 100644 --- a/pkg/remote/preflight/checker.go +++ b/pkg/remote/preflight/checker.go @@ -165,7 +165,7 @@ func (remote *Checker) newClusterRole() *rbacv1.ClusterRole { Rules: []rbacv1.PolicyRule{ { APIGroups: []string{"apps"}, - Resources: []string{"daemonsets"}, + Resources: []string{"daemonsets", "deployments"}, Verbs: []string{"get"}, }, },