mirror of https://github.com/k3s-io/k3s
fix a error in return value
modified: pkg/registry/rbac/validation/rule.gopull/8/head
parent
3e5596321e
commit
f35402e515
|
@ -315,7 +315,7 @@ func (r *StaticRoles) GetClusterRole(name string) (*rbac.ClusterRole, error) {
|
||||||
return clusterRole, nil
|
return clusterRole, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil, errors.New("role not found")
|
return nil, errors.New("clusterrole not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *StaticRoles) ListRoleBindings(namespace string) ([]*rbac.RoleBinding, error) {
|
func (r *StaticRoles) ListRoleBindings(namespace string) ([]*rbac.RoleBinding, error) {
|
||||||
|
|
Loading…
Reference in New Issue