From 41b24fb7694d04e5ab79ec3cbd8b19ebb6f6d034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Apayd=C4=B1n?= Date: Wed, 8 Feb 2023 19:09:15 +0300 Subject: [PATCH] move from k8s.gcr.io to registry.k8s.io (#6263) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Batuhan Apaydın --- pkg/engine/validate/validate_test.go | 2 +- .../addIfNotPresent/deploy-patched.yaml | 2 +- .../foreach/addIfNotPresent/resources.yaml | 2 +- test/cli/test/foreach/resources.yaml | 18 +++++++++--------- test/cli/test/owner_references/resource.yaml | 4 ++-- test/output/pod-with-default-volume.yaml | 2 +- test/output/pod-with-emptydir.yaml | 2 +- test/output/pod-with-hostpath.yaml | 2 +- test/resources/pod-with-default-volume.yaml | 2 +- test/resources/pod-with-emptydir.yaml | 2 +- test/resources/pod-with-hostpath.yaml | 2 +- .../resource_validate_healthChecks.yaml | 4 ++-- 12 files changed, 22 insertions(+), 22 deletions(-) diff --git a/pkg/engine/validate/validate_test.go b/pkg/engine/validate/validate_test.go index 28143e3213..777cfdd01d 100644 --- a/pkg/engine/validate/validate_test.go +++ b/pkg/engine/validate/validate_test.go @@ -155,7 +155,7 @@ func TestValidateMap_AsteriskForInt(t *testing.T) { "containers":[ { "name":"nginxo", - "image":"k8s.gcr.io/nginx-but-no-slim:0.8", + "image":"registry.k8s.io/nginx-but-no-slim:0.8", "ports":[ { "containerPort":8780, diff --git a/test/cli/test-mutate/foreach/addIfNotPresent/deploy-patched.yaml b/test/cli/test-mutate/foreach/addIfNotPresent/deploy-patched.yaml index fc352d4abd..3940e3df7c 100644 --- a/test/cli/test-mutate/foreach/addIfNotPresent/deploy-patched.yaml +++ b/test/cli/test-mutate/foreach/addIfNotPresent/deploy-patched.yaml @@ -18,7 +18,7 @@ spec: runAsGroup: 65000 containers: - name: pause - image: k8s.gcr.io/pause:3.3 + image: registry.k8s.io/pause:3.3 resources: limits: cpu: 10m diff --git a/test/cli/test-mutate/foreach/addIfNotPresent/resources.yaml b/test/cli/test-mutate/foreach/addIfNotPresent/resources.yaml index 83c9f3c33f..7bc335845d 100644 --- a/test/cli/test-mutate/foreach/addIfNotPresent/resources.yaml +++ b/test/cli/test-mutate/foreach/addIfNotPresent/resources.yaml @@ -18,7 +18,7 @@ spec: runAsGroup: 65000 containers: - name: pause - image: k8s.gcr.io/pause:3.3 + image: registry.k8s.io/pause:3.3 resources: limits: cpu: 10m diff --git a/test/cli/test/foreach/resources.yaml b/test/cli/test/foreach/resources.yaml index ad65fbb958..78da79b589 100644 --- a/test/cli/test/foreach/resources.yaml +++ b/test/cli/test/foreach/resources.yaml @@ -4,12 +4,12 @@ metadata: name: test-pod spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test1 volumeMounts: - mountPath: /tmp/cache name: cache-volume - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test2 volumeMounts: - mountPath: /tmp/cache @@ -52,12 +52,12 @@ metadata: name: test-pod2 spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test1 volumeMounts: - mountPath: /tmp/cache name: cache-volume - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test2 volumeMounts: - mountPath: /gce @@ -74,7 +74,7 @@ metadata: name: test-pod-bad-mount spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io8s.io/test-webserver name: test1 volumeMounts: - mountPath: /cache @@ -89,7 +89,7 @@ metadata: name: test-pod-with-resources spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test1 resources: requests: @@ -109,7 +109,7 @@ metadata: name: test-pod-with-gke-vol spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test2 resources: requests: {} @@ -127,7 +127,7 @@ metadata: name: test-pod-with-resources-multiple-ctnrs spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test1 resources: requests: @@ -137,7 +137,7 @@ spec: volumeMounts: - mountPath: /tmp/cache name: cache-volume - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test2 resources: requests: {} diff --git a/test/cli/test/owner_references/resource.yaml b/test/cli/test/owner_references/resource.yaml index e1ae66391d..1cd9b12be4 100644 --- a/test/cli/test/owner_references/resource.yaml +++ b/test/cli/test/owner_references/resource.yaml @@ -10,7 +10,7 @@ metadata: spec: containers: - name: test-probes - image: k8s.gcr.io/liveness + image: registry.k8s.io/liveness args: - /server --- @@ -23,7 +23,7 @@ spec: spec: containers: - name: test-probes - image: k8s.gcr.io/liveness + image: registry.k8s.io/liveness args: - /server --- diff --git a/test/output/pod-with-default-volume.yaml b/test/output/pod-with-default-volume.yaml index ea78ea7686..e5923a9d4b 100644 --- a/test/output/pod-with-default-volume.yaml +++ b/test/output/pod-with-default-volume.yaml @@ -5,7 +5,7 @@ metadata: creationTimestamp: "2020-09-21T12:56:35Z" spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount diff --git a/test/output/pod-with-emptydir.yaml b/test/output/pod-with-emptydir.yaml index 5593606614..944ac730a7 100644 --- a/test/output/pod-with-emptydir.yaml +++ b/test/output/pod-with-emptydir.yaml @@ -6,7 +6,7 @@ metadata: cluster-autoscaler.kubernetes.io/safe-to-evict: "true" spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /cache diff --git a/test/output/pod-with-hostpath.yaml b/test/output/pod-with-hostpath.yaml index b011aa1e09..74b2ba2212 100644 --- a/test/output/pod-with-hostpath.yaml +++ b/test/output/pod-with-hostpath.yaml @@ -6,7 +6,7 @@ metadata: cluster-autoscaler.kubernetes.io/safe-to-evict: "true" spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /tmp/foo diff --git a/test/resources/pod-with-default-volume.yaml b/test/resources/pod-with-default-volume.yaml index ea78ea7686..e5923a9d4b 100644 --- a/test/resources/pod-with-default-volume.yaml +++ b/test/resources/pod-with-default-volume.yaml @@ -5,7 +5,7 @@ metadata: creationTimestamp: "2020-09-21T12:56:35Z" spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount diff --git a/test/resources/pod-with-emptydir.yaml b/test/resources/pod-with-emptydir.yaml index 87ed864569..dceae47f3b 100644 --- a/test/resources/pod-with-emptydir.yaml +++ b/test/resources/pod-with-emptydir.yaml @@ -4,7 +4,7 @@ metadata: name: pod-with-emptydir spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /cache diff --git a/test/resources/pod-with-hostpath.yaml b/test/resources/pod-with-hostpath.yaml index 6280c40b35..45696c9cbe 100644 --- a/test/resources/pod-with-hostpath.yaml +++ b/test/resources/pod-with-hostpath.yaml @@ -5,7 +5,7 @@ metadata: annotations: spec: containers: - - image: k8s.gcr.io/test-webserver + - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /tmp/foo diff --git a/test/resources/resource_validate_healthChecks.yaml b/test/resources/resource_validate_healthChecks.yaml index 8599a904b3..ecedb8aa52 100644 --- a/test/resources/resource_validate_healthChecks.yaml +++ b/test/resources/resource_validate_healthChecks.yaml @@ -7,7 +7,7 @@ metadata: spec: containers: - name: check-readiness - image: k8s.gcr.io/busybox + image: registry.k8s.io/busybox args: - /bin/sh - -c @@ -19,7 +19,7 @@ spec: - cat - /tmp/healthy - name: check-liveness - image: k8s.gcr.io/liveness + image: registry.k8s.io/liveness args: - /server livenessProbe: