bug fixed

This commit is contained in:
hongming
2018-06-01 16:31:25 +08:00
parent b65ba97e77
commit 5e1cb6b79d
3 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ func clusterRoleUsersHandler(req *restful.Request, resp *restful.Response) {
for _, roleBinding := range roleBindings {
for _, subject := range roleBinding.Subjects {
if subject.Kind == v1.UserKind {
if subject.Kind == v1.UserKind && !strings.HasPrefix(subject.Name, "system") {
users = append(users, subject.Name)
}
}