Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: migrate from k8s.gcr.io to registry.k8s.io #1205

Merged
merged 3 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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