Skip to content

Commit

Permalink
Reduce default catalog page size (#1092)
Browse files Browse the repository at this point in the history
Fixes: #1091
Refer: 11a80c2
  • Loading branch information
NicholasAsimov committed Jul 29, 2021
1 parent 45aaa6c commit eca1cd8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/v1/remote/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ func Catalog(ctx context.Context, target name.Registry, options ...Option) ([]st
}

uri := &url.URL{
Scheme: target.Scheme(),
Host: target.RegistryStr(),
Path: "/v2/_catalog",
RawQuery: "n=10000",
Scheme: target.Scheme(),
Host: target.RegistryStr(),
Path: "/v2/_catalog",
// ECR returns an error if n > 1000:
// https://github.com/google/go-containerregistry/issues/1091
RawQuery: "n=1000",
}

client := http.Client{Transport: tr}
Expand Down

0 comments on commit eca1cd8

Please sign in to comment.