Skip to content

Commit 9e661c8

Browse files
authored
Merge pull request #16200 from spowelljr/removeOldRegistry
Remove remaining references to k8s.gcr.io
2 parents 10bd017 + 8f47b1d commit 9e661c8

File tree

21 files changed

+69
-79
lines changed

21 files changed

+69
-79
lines changed

deploy/addons/gpu/nvidia-driver-installer.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ spec:
7777
- name: root-mount
7878
mountPath: /root
7979
containers:
80-
- image: "{{default "k8s.gcr.io" .ImageRepository}}/{{.Images.Pause}}"
80+
- image: "{{default "registry.k8s.io" .ImageRepository}}/{{.Images.Pause}}"
8181
name: pause

deploy/addons/gvisor/gvisor-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ oom_score = 0
2929
stream_server_address = ""
3030
stream_server_port = "10010"
3131
enable_selinux = false
32-
sandbox_image = "{{default "k8s.gcr.io" .ImageRepository}}/pause:3.1"
32+
sandbox_image = "{{default "registry.k8s.io" .ImageRepository}}/pause:3.1"
3333
stats_collect_period = 10
3434
systemd_cgroup = false
3535
enable_tls_streaming = false

deploy/iso/minikube-iso/arch/aarch64/package/containerd-bin-aarch64/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ oom_score = 0
3131
stream_server_address = ""
3232
stream_server_port = "10010"
3333
enable_selinux = false
34-
sandbox_image = "k8s.gcr.io/pause:3.6"
34+
sandbox_image = "registry.k8s.io/pause:3.6"
3535
stats_collect_period = 10
3636
enable_tls_streaming = false
3737
max_container_log_line_size = 16384

deploy/iso/minikube-iso/arch/x86_64/package/containerd-bin/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ oom_score = 0
3131
stream_server_address = ""
3232
stream_server_port = "10010"
3333
enable_selinux = false
34-
sandbox_image = "k8s.gcr.io/pause:3.6"
34+
sandbox_image = "registry.k8s.io/pause:3.6"
3535
stats_collect_period = 10
3636
enable_tls_streaming = false
3737
max_container_log_line_size = 16384

deploy/iso/minikube-iso/package/crio-bin/crio.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ global_auth_file = ""
339339

340340
# The image used to instantiate infra containers.
341341
# This option supports live configuration reload.
342-
pause_image = "k8s.gcr.io/pause:3.2"
342+
pause_image = "registry.k8s.io/pause:3.2"
343343

344344
# The path to a file containing credentials specific for pulling the pause_image from
345345
# above. The file is similar to that of /var/lib/kubelet/config.json

deploy/iso/minikube-iso/package/crio-bin/crio.conf.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ global_auth_file = ""
339339

340340
# The image used to instantiate infra containers.
341341
# This option supports live configuration reload.
342-
pause_image = "k8s.gcr.io/pause:3.2"
342+
pause_image = "registry.k8s.io/pause:3.2"
343343

344344
# The path to a file containing credentials specific for pulling the pause_image from
345345
# above. The file is similar to that of /var/lib/kubelet/config.json

deploy/kicbase/containerd.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ oom_score = 0
3131
stream_server_address = ""
3232
stream_server_port = "10010"
3333
enable_selinux = false
34-
sandbox_image = "k8s.gcr.io/pause:3.6"
34+
sandbox_image = "registry.k8s.io/pause:3.6"
3535
stats_collect_period = 10
3636
enable_tls_streaming = false
3737
max_container_log_line_size = 16384

pkg/addons/addons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func supportLegacyIngress(addon *assets.Addon, cc config.ClusterConfig) error {
382382
"KubeWebhookCertgenPatch": "docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7",
383383
}
384384
addon.Registries = map[string]string{
385-
"IngressController": "k8s.gcr.io",
385+
"IngressController": "registry.k8s.io",
386386
}
387387
return nil
388388
}

pkg/minikube/assets/addons.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ var Addons = map[string]*Addon{
246246
"Alpine": "alpine:3.6@sha256:66790a2b79e1ea3e1dabac43990c54aca5d1ddf268d9a5a0285e4167c8b24475",
247247
"Kibana": "kibana/kibana:5.6.2@sha256:cd948a9bda4622f1437afc4a3e78be6c8c25fc62f40aa0376f3d690f2436568f",
248248
}, map[string]string{
249-
"Elasticsearch": "k8s.gcr.io",
250-
"FluentdElasticsearch": "k8s.gcr.io",
249+
"Elasticsearch": "registry.k8s.io",
250+
"FluentdElasticsearch": "registry.k8s.io",
251251
"Kibana": "docker.elastic.co",
252252
"Alpine": "docker.io",
253253
}),
@@ -446,8 +446,8 @@ var Addons = map[string]*Addon{
446446
"NvidiaDriverInstaller": "minikube-nvidia-driver-installer:e2d9b43228decf5d6f7dce3f0a85d390f138fa01",
447447
"Pause": "pause:2.0@sha256:9ce5316f9752b8347484ab0f6778573af15524124d52b93230b9a0dcc987e73e",
448448
}, map[string]string{
449-
"NvidiaDriverInstaller": "k8s.gcr.io",
450-
"Pause": "k8s.gcr.io",
449+
"NvidiaDriverInstaller": "registry.k8s.io",
450+
"Pause": "registry.k8s.io",
451451
}),
452452
"nvidia-gpu-device-plugin": NewAddon([]*BinAsset{
453453
MustBinAsset(addons.NvidiaGpuDevicePluginAssets,
@@ -458,7 +458,7 @@ var Addons = map[string]*Addon{
458458
}, false, "nvidia-gpu-device-plugin", "3rd party (Nvidia)", "", "https://minikube.sigs.k8s.io/docs/tutorials/nvidia_gpu/", map[string]string{
459459
"NvidiaDevicePlugin": "nvidia-gpu-device-plugin@sha256:4b036e8844920336fa48f36edeb7d4398f426d6a934ba022848deed2edbf09aa",
460460
}, map[string]string{
461-
"NvidiaDevicePlugin": "k8s.gcr.io",
461+
"NvidiaDevicePlugin": "registry.k8s.io",
462462
}),
463463
"logviewer": NewAddon([]*BinAsset{
464464
MustBinAsset(addons.LogviewerAssets,
@@ -591,7 +591,7 @@ var Addons = map[string]*Addon{
591591
"GCPAuthWebhook": "k8s-minikube/gcp-auth-webhook:v0.0.14@sha256:60fc3f336083dcd0a472caa51edfbf497d4df37115bb65e2d12739ed461db925",
592592
}, map[string]string{
593593
"GCPAuthWebhook": "gcr.io",
594-
"KubeWebhookCertgen": "k8s.gcr.io",
594+
"KubeWebhookCertgen": "registry.k8s.io",
595595
}),
596596
"volumesnapshots": NewAddon([]*BinAsset{
597597
// make sure the order of apply. `csi-hostpath-snapshotclass` must be the first position, because it depends on `snapshot.storage.k8s.io_volumesnapshotclasses`
@@ -948,8 +948,8 @@ func GenerateTemplateData(addon *Addon, cc *config.ClusterConfig, netInfo Networ
948948
// tl;dr If the user specified a custom image remove the default registry
949949
// Without the line below, if you try to overwrite an image the default registry is still used in the templating
950950
// Example - image name: MetricsScraper, default registry: docker.io, default image: kubernetesui/metrics-scraper
951-
// Passed on addon enable: --images=MetricsScraper=k8s.gcr.io/echoserver:1.4
952-
// Without this line the resulting image would be docker.io/k8s.gcr.io/echoserver:1.4
951+
// Passed on addon enable: --images=MetricsScraper=registry.k8s.io/echoserver:1.4
952+
// Without this line the resulting image would be docker.io/registry.k8s.io/echoserver:1.4
953953
if _, ok := cc.CustomAddonImages[name]; ok {
954954
opts.Registries[name] = ""
955955
}

pkg/minikube/bootstrapper/images/images.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
)
3535

3636
const (
37-
// builds a docker v2 repository API call in the format https://k8s.gcr.io/v2/coredns/coredns/tags/list
37+
// builds a docker v2 repository API call in the format https://registry.k8s.io/v2/coredns/coredns/tags/list
3838
tagURLTemplate = "https://%s/v2/%s/tags/list"
3939
)
4040

@@ -70,7 +70,7 @@ func componentImage(name string, v semver.Version, mirror string) string {
7070
return fmt.Sprintf("%s:v%s", path.Join(kubernetesRepo(mirror), name), v)
7171
}
7272

73-
// fixes 13136 by getting the latest image version from the k8s.gcr.io repository instead of hardcoded
73+
// fixes 13136 by getting the latest image version from the registry.k8s.io repository instead of hardcoded
7474
func findLatestTagFromRepository(url string, lastKnownGood string) string {
7575
client := &http.Client{}
7676
errorMsg := fmt.Sprintf("Failed to get latest image version for %s, reverting to version %s.", url, lastKnownGood)

0 commit comments

Comments
 (0)