From 97a0ae6f0dbdaf16acbbbd058d3dafb378ff640f Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Fri, 26 Jan 2024 21:08:10 +0100 Subject: [PATCH] Also allow to get viewer role as admin --- pkg/billingrbac/billingrbac.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/billingrbac/billingrbac.go b/pkg/billingrbac/billingrbac.go index 7b8fb35d..ef6d1ef6 100644 --- a/pkg/billingrbac/billingrbac.go +++ b/pkg/billingrbac/billingrbac.go @@ -89,7 +89,7 @@ func ClusterRoles(beName string, p ClusterRolesParams) (ar *rbacv1.ClusterRole, APIGroups: []string{"rbac.authorization.k8s.io"}, Resources: []string{"clusterroles"}, Verbs: []string{"get"}, - ResourceNames: []string{adminRoleName}, + ResourceNames: []string{viewRoleName, adminRoleName}, }) } adminRoleBinding := &rbacv1.ClusterRoleBinding{