fix(rbac) EE-1867 regular user unable to access pod and node stats view (#5886)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
pull/5917/head
cong meng 2021-10-14 17:00:31 +13:00 committed by GitHub
parent 8383bc05c5
commit f544d4447c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ func getPortainerUserDefaultPolicies() []rbacv1.PolicyRule {
Resources: []string{"storageclasses"},
APIGroups: []string{"storage.k8s.io"},
},
{
Verbs: []string{"list", "get"},
Resources: []string{"namespaces", "pods", "nodes"},
APIGroups: []string{"metrics.k8s.io"},
},
}
}