From f966d3a48921d9f82b371c83d508e3070ba5dbd3 Mon Sep 17 00:00:00 2001 From: Mengjiao Liu Date: Thu, 9 Feb 2023 16:35:52 +0800 Subject: [PATCH] test: update image registry from k8s.gcr.io to registry.k8s.io --- .../internal/container/docker/image_test.go | 16 ++++++++-------- .../kind/load/docker-image/docker-image_test.go | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/build/nodeimage/internal/container/docker/image_test.go b/pkg/build/nodeimage/internal/container/docker/image_test.go index 2048ba2fe8..f900d2ff57 100644 --- a/pkg/build/nodeimage/internal/container/docker/image_test.go +++ b/pkg/build/nodeimage/internal/container/docker/image_test.go @@ -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, }, diff --git a/pkg/cmd/kind/load/docker-image/docker-image_test.go b/pkg/cmd/kind/load/docker-image/docker-image_test.go index d338f1677b..43fa2acbc2 100644 --- a/pkg/cmd/kind/load/docker-image/docker-image_test.go +++ b/pkg/cmd/kind/load/docker-image/docker-image_test.go @@ -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",