From 57ad4275e7b4d8cfe629d5a129cf659dd9e80f63 Mon Sep 17 00:00:00 2001 From: pixiake Date: Tue, 24 Dec 2024 00:18:25 +0800 Subject: [PATCH] add rbac resources for inspect job (#347) Signed-off-by: pixiake --- pkg/template/role_template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/template/role_template.go b/pkg/template/role_template.go index 122437dc..9610a1b3 100644 --- a/pkg/template/role_template.go +++ b/pkg/template/role_template.go @@ -35,7 +35,7 @@ func GetClusterRoleTemplate() *rbacv1.ClusterRole { }, { APIGroups: []string{"rbac.authorization.k8s.io"}, - Resources: []string{"roles", "clusterroles"}, + Resources: []string{"roles", "clusterroles", "rolebindings", "clusterrolebindings"}, Verbs: []string{"list", "get", "watch"}, }, },