Fix rbac for dashboard backend (#1304)

* fix: fix rbac for dashboard backend

Signed-off-by: Oleksii Orel <oorel@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
pull/1308/head
Oleksii Orel 2022-02-01 17:05:49 +02:00 committed by GitHub
parent 4f08657509
commit c1844de883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ func GetPrivilegedPoliciesRulesForKubernetes() []rbacv1.PolicyRule {
Resources: []string{"namespaces"},
Verbs: []string{"get", "create", "update", "list"},
},
{
APIGroups: []string{"org.eclipse.che"},
Resources: []string{"checlusters"},
Verbs: []string{"get", "list", "watch"},
},
}
if !util.IsOpenShift {