Skip to content

Commit

Permalink
fix: migrate from k8s.gcr.io to registry.k8s.io (#1205)
Browse files Browse the repository at this point in the history
This fix is a part of an umbrella issue kubernetes/k8s.io#4780
  • Loading branch information
CIPHERTron authored Mar 8, 2023
1 parent 53e3e6b commit 955af6c
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.14.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6893,7 +6893,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.15.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6976,7 +6976,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.16.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7437,7 +7437,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.17.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7437,7 +7437,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.18.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5828,7 +5828,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.19.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5845,7 +5845,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.20.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6132,7 +6132,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.21.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6159,7 +6159,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.22.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5098,7 +5098,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.23.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5761,7 +5761,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-schemas/v1.24.0/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5732,7 +5732,7 @@
"description": "Describe a container image",
"properties": {
"names": {
"description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"description": "Names by which this image is known. e.g. [\"registry.k8s.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]",
"items": {
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In short, here is what you have to do to make this happen:
spec:
containers:
- name: test-container
image: k8s.gcr.io/busybox
image: registry.k8s.io/busybox
command: [ "/bin/sh", "-c", "ls /etc/config/" ]
volumeMounts:
- name: config-volume
Expand Down Expand Up @@ -49,7 +49,7 @@ const volume = pod.addConfigMapVolume(config);
// add a container to the pod and mount the files
// to /etc/config, and print them on initialization
const container = pod.addContainer('test-container');
container.image = 'k8s.gcr.io/busybox';
container.image = 'registry.k8s.io/busybox';
container.mount(volume, '/etc/config'); // <-- NICE!
container.command = "/bin/sh", "-c", "ls /etc/config/";
container.restartPolicy = PodRestartPolicy.NEVER;
Expand Down

0 comments on commit 955af6c

Please sign in to comment.