fix standard user not able to access nodes stats (#5951)

pull/5967/head
Richard Wei 2021-10-21 11:56:21 +13:00 committed by GitHub
parent 988efe6b02
commit b5ec8c52fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
func getPortainerUserDefaultPolicies() []rbacv1.PolicyRule {
return []rbacv1.PolicyRule{
{
Verbs: []string{"list"},
Verbs: []string{"list", "get"},
Resources: []string{"namespaces", "nodes"},
APIGroups: []string{""},
},