diff --git a/pkg/registry/rbac/validation/rule.go b/pkg/registry/rbac/validation/rule.go index e80382e6d3..5c8a2406f4 100644 --- a/pkg/registry/rbac/validation/rule.go +++ b/pkg/registry/rbac/validation/rule.go @@ -315,7 +315,7 @@ func (r *StaticRoles) GetClusterRole(name string) (*rbac.ClusterRole, error) { 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) {