Skip to content

Commit

Permalink
Fix validation check for maximum size limit (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
IronPan authored and k8s-ci-robot committed Nov 6, 2018
1 parent 077a060 commit fba58cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/apiserver/server/list_request_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func ValidatePagination(pageToken string, pageSize int, keyFieldName string, que
// Use default page size if not provided.
pageSize = defaultPageSize
}
if pageSize > defaultPageSize {
if pageSize > maxPageSize {
pageSize = maxPageSize
}
if sortByFieldName == "" {
Expand Down

0 comments on commit fba58cd

Please sign in to comment.