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

k8s-infra: Use registry.k8s.io for deployment #687

Closed

Conversation

ameukam
Copy link

@ameukam ameukam commented Apr 7, 2022

What type of PR is this?
/kind feature deprecation

What this PR does / why we need it:

Related to:

Switch to the new endpoint for container images. See: https://github.com/kubernetes/k8s.io/wiki/New-Registry-url-for-Kubernetes-(registry.k8s.io)

Special notes for your reviewer:
registry.k8s.io is currently a redirect to k8s.gcr.io. The change should be transparent to any pulling from k8s.gcr.io.

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 7, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ameukam
To complete the pull request process, please assign jsafrane after the PR has been reviewed.
You can assign the PR to them by writing /assign @jsafrane in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from humblec and jingxu97 April 7, 2022 09:25
@ameukam ameukam changed the title k8s-infra: Use registry.k8s.io for deployment. k8s-infra: Use registry.k8s.io for deployment Apr 7, 2022
@k8s-ci-robot
Copy link
Contributor

@ameukam: Adding the "do-not-merge/release-note-label-needed" label and removing any existing "release-note-none" label because there is a "kind/deprecation" label on the PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Apr 7, 2022
@ameukam
Copy link
Author

ameukam commented Apr 7, 2022

cc @msau42 @xing-yang

@xing-yang
Copy link
Collaborator

@ameukam When we cut a release from these repos, the image was first uploaded to gcr.io/k8s-staging-sig-storage. Then we run a script to promote the image to the production location k8s.gcr.io/sig-storage. After that the image will also automatically show up in registry.k8s.io? We don't need to change our image promotion process, right?

@ameukam
Copy link
Author

ameukam commented Apr 7, 2022

@ameukam When we cut a release from these repos, the image was first uploaded to gcr.io/k8s-staging-sig-storage. Then we run a script to promote the image to the production location k8s.gcr.io/sig-storage. After that the image will also automatically show up in registry.k8s.io? We don't need to change our image promotion process, right?

Yes. This is not impacting the release process for kubernetes or any Kubernetes project. registry.k8s.io acts as a proxy to k8s.gcr.io.

@xing-yang
Copy link
Collaborator

Can you also help make the following changes since you are already updating csi-snapshotter files?

Update the following line to: registry.k8s.io/sig-storage/snapshot-controller:v5.0.1
https://github.com/kubernetes-csi/external-snapshotter/blob/v6.0.0-rc3/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml#L36

Update the following line to: registry.k8s.io/sig-storage/snapshot-validation-webhook:v5.0.1
https://github.com/kubernetes-csi/external-snapshotter/blob/v6.0.0-rc3/deploy/kubernetes/webhook-example/webhook.yaml#L20

@ameukam ameukam force-pushed the migrate-deploy-registry-k8s-io branch from 67952db to 97e6413 Compare April 7, 2022 14:41
@xing-yang
Copy link
Collaborator

I see that you labeled this as "deprecation". Should we have a release note for that?

@ameukam
Copy link
Author

ameukam commented Apr 7, 2022

I see that you labeled this as "deprecation". Should we have a release note for that?

A note mentioning the new endpoint should be added to the network security policies (firewall rules, etc...) for anyone using this endpoint. Still working on the proper note. We can hold this PR until k8s-infra has an official note if needed.

@ameukam
Copy link
Author

ameukam commented Apr 7, 2022

/cherry-pick release-6.0

@ameukam ameukam force-pushed the migrate-deploy-registry-k8s-io branch from 97e6413 to 4d99b7f Compare April 7, 2022 21:10
@humblec
Copy link
Contributor

humblec commented Apr 19, 2022

@ameukam can you also file PRs for other sidecar repos in kubernetes-csi org ( like external-*..etc) for the same change?

Cc @pohly

@xing-yang
Copy link
Collaborator

/release-note-none

@k8s-ci-robot
Copy link
Contributor

@xing-yang: you can not set the release note label to "release-note-none" because the PR has the label "kind/deprecation".

In response to this:

/release-note-none

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@xing-yang
Copy link
Collaborator

@ameukam We are required to add a release note because the PR has the label "kind/deprecation".

Can you add something like this:
Change image repo to registry.k8s.io which is a redirect to k8s.gcr.io.

@pohly
Copy link
Contributor

pohly commented Apr 20, 2022

/hold

According to https://groups.google.com/a/kubernetes.io/g/dev/c/DYZYNQ_A6_c/m/bhoEaoY_AAAJ it is too early to change references permanently. registry.k8s.io is still in a trial phase.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 20, 2022
@humblec
Copy link
Contributor

humblec commented Jun 6, 2022

@pohly looks like we can get this in now.

@pohly
Copy link
Contributor

pohly commented Jun 7, 2022

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 7, 2022
@pohly
Copy link
Contributor

pohly commented Jun 7, 2022

/release-note-none

@k8s-ci-robot
Copy link
Contributor

@pohly: you can not set the release note label to "release-note-none" because the PR has the label "kind/deprecation".

In response to this:

/release-note-none

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@pohly
Copy link
Contributor

pohly commented Jun 7, 2022

/kind cleanup

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jun 7, 2022
@pohly
Copy link
Contributor

pohly commented Jun 7, 2022

I don't think that this is a deprecation of a feature in this repo as implied by the kind/deprecation label. As far as I can tell, upstream Kubernetes doesn't have specific instructions around this either, so I would merge this PR without a change note. We already did the same in other repos, too...

@k8s-ci-robot
Copy link
Contributor

@ameukam: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 8, 2022
@xing-yang
Copy link
Collaborator

@ameukam Can you rebase this PR and remove the "deprecation" label?

@@ -84,7 +84,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: csi-snapshotter
image: gcr.io/k8s-staging-sig-storage/csi-snapshotter:v5.0.1
image: registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v5.0.1->v6.0.1

@@ -72,7 +72,7 @@ spec:
serviceAccount: csi-snapshotter
containers:
- name: csi-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0
image: registry.k8s.io/sig-storage/csi-provisioner:v3.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v3.0.0->v3.2.1

@@ -97,7 +97,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: hostpath
image: k8s.gcr.io/sig-storage/hostpathplugin:v1.7.2
image: registry.k8s.io/sig-storage/hostpathplugin:v1.7.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.7.2->v1.9.0

@AdityaC45
Copy link
Contributor

Hey @ameukam if you have not created PR for other sidecar repos ( like external-*..etc) in kubernetes-csi org, can I do that?
@humblec @xing-yang this change is acceptable , right?

@xing-yang
Copy link
Collaborator

@AdityaC45 This PR needs a rebase and update to address review comments.
Please go ahead to submit PRs to update other sidecar repos.

@ameukam
Copy link
Author

ameukam commented Aug 26, 2022

Hey @ameukam if you have not created PR for other sidecar repos ( like external-*..etc) in kubernetes-csi org, can I do that?
@humblec @xing-yang this change is acceptable , right?

@AdityaC45 Hi, I got really busy with 1.25. Feel free to close this one if needed. Thank you so much for working on this. 🙇🏾‍♂️

@AdityaC45
Copy link
Contributor

@ameukam will create a new PR for this repo

@xing-yang
Copy link
Collaborator

Can this PR be closed now?

@ameukam
Copy link
Author

ameukam commented Sep 5, 2022

/close
Replaced by #756.

@k8s-ci-robot
Copy link
Contributor

@ameukam: Closed this PR.

In response to this:

/close
Replaced by #756.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. kind/feature Categorizes issue or PR as related to a new feature. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants