Skip to content

Commit

Permalink
Merge pull request #5189 from TBBle/reduce-load-on-ratelimited-docker.io
Browse files Browse the repository at this point in the history
Reduce load on ratelimited docker.io
  • Loading branch information
estesp committed Mar 14, 2021
2 parents 42266da + 5cfc4a8 commit 6f94b15
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 285 deletions.
6 changes: 4 additions & 2 deletions integration/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func TestImagePullAllPlatforms(t *testing.T) {
defer cancel()

cs := client.ContentStore()
img, err := client.Fetch(ctx, "docker.io/library/busybox:latest")
img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.4.1")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -358,7 +358,9 @@ func TestImagePullSomePlatforms(t *testing.T) {
opts = append(opts, WithPlatform(platform))
}

img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.4.1", opts...)
// Note: Must be different to the image used in TestImagePullAllPlatforms
// or it will see the content pulled by that, and fail.
img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.2", opts...)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion integration/client/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/containerd/containerd/integration/client
go 1.15

require (
github.com/Microsoft/hcsshim v0.8.14
github.com/Microsoft/hcsshim v0.8.15
github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3
github.com/containerd/cgroups v0.0.0-20210114181951-8a68de567b68
github.com/containerd/containerd v1.5.0-beta.1
Expand Down

0 comments on commit 6f94b15

Please sign in to comment.