Skip to content

Commit

Permalink
Merge pull request #3091 from mengjiao-liu/update-registry
Browse files Browse the repository at this point in the history
test: update image registry from k8s.gcr.io to registry.k8s.io
  • Loading branch information
BenTheElder authored Feb 9, 2023
2 parents e83de62 + f966d3a commit 281d00d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions pkg/build/nodeimage/internal/container/docker/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,26 @@ func TestSplitImage(t *testing.T) {
ExpectError: false,
},
{
Image: "k8s.gcr.io/coredns:1.1.3",
ExpectedRegistry: "k8s.gcr.io/coredns",
Image: "registry.k8s.io/coredns:1.1.3",
ExpectedRegistry: "registry.k8s.io/coredns",
ExpectedTag: "1.1.3",
ExpectError: false,
},
{
Image: "k8s.gcr.io/coredns:1.1.3@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectedRegistry: "k8s.gcr.io/coredns",
Image: "registry.k8s.io/coredns:1.1.3@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectedRegistry: "registry.k8s.io/coredns",
ExpectedTag: "1.1.3@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectError: false,
},
{
Image: "k8s.gcr.io/coredns:latest@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectedRegistry: "k8s.gcr.io/coredns",
Image: "registry.k8s.io/coredns:latest@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectedRegistry: "registry.k8s.io/coredns",
ExpectedTag: "latest@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectError: false,
},
{
Image: "k8s.gcr.io/coredns@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectedRegistry: "k8s.gcr.io/coredns",
Image: "registry.k8s.io/coredns@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectedRegistry: "registry.k8s.io/coredns",
ExpectedTag: "latest@sha256:28ef97b8686a0b5399129e9b763d5b7e5ff03576aa5580d6f4182a49c5fe1913",
ExpectError: false,
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/kind/load/docker-image/docker-image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func Test_sanitizeImage(t *testing.T) {
sanitizedImage: "registry.k8s.io/kindest/node:latest",
},
{
image: "k8s.gcr.io/pause:3.6",
sanitizedImage: "k8s.gcr.io/pause:3.6",
image: "registry.k8s.io/pause:3.6",
sanitizedImage: "registry.k8s.io/pause:3.6",
},
{
image: "baz",
Expand Down

0 comments on commit 281d00d

Please sign in to comment.