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

Update K8s dependency go modules for K8s v1.26.0-rc.0 #389

Merged

Conversation

sunnylovestiramisu
Copy link
Contributor

@sunnylovestiramisu sunnylovestiramisu commented Nov 22, 2022

Ran

release-tools/go-get-kubernetes.sh -p 1.26.0-rc.0

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 22, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @sunnylovestiramisu!

It looks like this is your first PR to kubernetes-csi/external-attacher 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-csi/external-attacher has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 22, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @sunnylovestiramisu. Thanks for your PR.

I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 22, 2022
@msau42
Copy link
Collaborator

msau42 commented Nov 22, 2022

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 22, 2022
@msau42
Copy link
Collaborator

msau42 commented Nov 22, 2022

Did the script generate the PR title? I would probably clarify that this is updating the Kubernetes dependencies

@sunnylovestiramisu
Copy link
Contributor Author

Yes it does, we can specify whatever title we want.

@sunnylovestiramisu sunnylovestiramisu changed the title Update go modules for v1.26.0-rc.0 Update K8s dependency go modules for K8s v1.26.0-rc.0 Nov 22, 2022
@humblec
Copy link
Contributor

humblec commented Nov 22, 2022

@sunnylovestiramisu Thanks for the PR.. but few comments from my end. imo, we dont bring rc updates to the repo, atleast released minor versions. This script also require some cleaning after getting the kube versions..etc, for ex: the unwanted replace directives. Also considering we have automated this process of updating the dependencies via dependabot, this PR shouldnt be necessary.

@sunnylovestiramisu
Copy link
Contributor Author

sunnylovestiramisu commented Nov 22, 2022

@sunnylovestiramisu Thanks for the PR.. but few comments from my end. imo, we dont bring rc updates to the repo, atleast released minor versions. This script also require some cleaning after getting the kube versions..etc, for ex: the unwanted replace directives. Also considering we have automated this process of updating the dependencies via dependabot, this PR shouldnt be necessary.

@humblec Thank you for the information! :) So the dependabot has already covered both the script release-tools/update-vendor.sh and release-tools/go-get-kubernetes.sh? Then we should update the documentation: csi-release-tools/blob/master/SIDECAR_RELEASE_PROCESS.md ?

@msau42
Copy link
Collaborator

msau42 commented Nov 22, 2022

@humblec I'm not sure if dependabot can handle kubernetes version updating (at least I have not seen it https://github.com/kubernetes-csi/external-provisioner/pulls?q=is%3Apr+author%3Aapp%2Fdependabot+is%3Aclosed).

@msau42
Copy link
Collaborator

msau42 commented Nov 22, 2022

In terms of whether we should wait for 1.26.0, I think it's fine to update to rc.0 now, and then update once more to 1.26.0 before we do the final release. That way we can start running tests with the new deps sooner. I don't expect signficant changes between rc.0 and .0

@humblec
Copy link
Contributor

humblec commented Nov 23, 2022

@humblec I'm not sure if dependabot can handle kubernetes version updating (at least I have not seen it https://github.com/kubernetes-csi/external-provisioner/pulls?q=is%3Apr+author%3Aapp%2Fdependabot+is%3Aclosed).

Oh.. yes, it can - as long as its not excluded in package list.. we can also see such instance here . https://github.com/kubernetes-csi/volume-data-source-validator/pulls @msau42

@humblec
Copy link
Contributor

humblec commented Nov 23, 2022

In terms of whether we should wait for 1.26.0, I think it's fine to update to rc.0 now, and then update once more to 1.26.0 before we do the final release. That way we can start running tests with the new deps sooner. I don't expect signficant changes between rc.0 and .0

Ok.. if the plan is to get the tests run early, it should be fine . 👍

go.mod Outdated
k8s.io/kube-openapi v0.0.0-20221110221610-a28e98eb7c70 // indirect
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2 // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace k8s.io/api => k8s.io/api v0.26.0-rc.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think its better to remove this replace section.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Collaborator

@msau42 msau42 Nov 23, 2022

Choose a reason for hiding this comment

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

It looks like the script is relying on the replace statements to do special handling for the kubernetes libraries that don't follow the same version naming scheme. @pohly do you know if it is safe to skip this logic if the repo does not import k/k?

https://github.com/kubernetes-csi/csi-release-tools/blob/master/go-get-kubernetes.sh#L125

Copy link
Contributor

Choose a reason for hiding this comment

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

If the repo doesn't use k/k, then it should be safe to drop the replace statements.

@sunnylovestiramisu sunnylovestiramisu marked this pull request as ready for review November 28, 2022 21:13
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 28, 2022
@sunnylovestiramisu
Copy link
Contributor Author

/retest

@xing-yang
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 28, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sunnylovestiramisu, xing-yang

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 28, 2022
@xing-yang
Copy link
Contributor

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 28, 2022
@k8s-ci-robot k8s-ci-robot merged commit c8dec0b into kubernetes-csi:master Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants