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 3 years ago committed by GitHub
parent 8383bc05c5
commit f544d4447c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"},
},
}
}

Loading…
Cancel
Save