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 vendor dependencies #428

Merged
merged 2 commits into from Jul 29, 2020
Merged

Conversation

humblec
Copy link
Contributor

@humblec humblec commented Apr 2, 2020

Update to client-go with ctx parameter

Kubernetes 1.18 introduced a ctx parameter in all API client-go API
calls. Whenever possible, that context is passed in by the caller
instead of making one up locally.

Newer releases of external-snapshotter and
sig-storage-lib-external-provisioner are needed because they have to
be compatible with the new client-go API (can't mix different versions
of it).

This PR handles:

kube dependencies are updated to v0.19.0-rc.2
sig-storage-lib-exernal-provisioner use v6 instead of v5.
external snapshotter dependency updated to v2.2.0-rc1


@k8s-ci-robot k8s-ci-robot added 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 Apr 2, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @humblec. 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 needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 2, 2020
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 2, 2020
@humblec humblec force-pushed the dep-update branch 2 times, most recently from 93dd4bc to 3e22591 Compare April 2, 2020 05:53
@humblec humblec changed the title Dep update update vendor dependencies Apr 2, 2020
@humblec
Copy link
Contributor Author

humblec commented Apr 2, 2020

/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 Apr 2, 2020
@humblec humblec changed the title update vendor dependencies [WIP] update vendor dependencies Apr 2, 2020
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 2, 2020
@msau42
Copy link
Collaborator

msau42 commented Apr 2, 2020

/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. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 2, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 3, 2020
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 30, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 19, 2020
Copy link
Contributor

@pohly pohly left a comment

Choose a reason for hiding this comment

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

This is going to be more complicated. We first need a release of sig-storage-lib-external-provisioner and external-snapshotter which also use the new client-go API.

I can take over this work as I need it, too.

@xing-yang
Copy link
Contributor

@pohly I see that sig-storage-lib-external-provisioner dep is already updated to 1.18. We also have a RC release for external-snapshotter whose dep is also updated to 1.18. So we can get this updated now?

@xing-yang
Copy link
Contributor

Actually we need to bump the k8s to 1.19 to support vSphere CSI Migration. There's another PR submitted for that: #452.
@pohly I assume you also need CSIStorageCapacity changes in 1.19?
We should combine these two PRs.

@humblec are you available to update this PR to incorporate changes in #452?

@xing-yang
Copy link
Contributor

Do we also need to bump sig-storage-lib-external-provisioner and external-snapshotter to 1.19?

@humblec
Copy link
Contributor Author

humblec commented Jul 21, 2020

Actually we need to bump the k8s to 1.19 to support vSphere CSI Migration. There's another PR submitted for that: #452.
@pohly I assume you also need CSIStorageCapacity changes in 1.19?
We should combine these two PRs.

@humblec are you available to update this PR to incorporate changes in #452?

sure!

Kubernetes 1.18 introduced a ctx parameter in all API client-go API
calls. Whenever possible, that context is passed in by the caller
instead of making one up locally.

Newer releases of external-snapshotter and
sig-storage-lib-external-provisioner are needed because they have to
be compatible with the new client-go API (can't mix different versions
of it).
@humblec humblec changed the title [WIP] update vendor dependencies Update vendor dependencies Jul 23, 2020
@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 Jul 23, 2020
@humblec
Copy link
Contributor Author

humblec commented Jul 23, 2020

Actually we need to bump the k8s to 1.19 to support vSphere CSI Migration. There's another PR submitted for that: #452.
@pohly I assume you also need CSIStorageCapacity changes in 1.19?
We should combine these two PRs.
@humblec are you available to update this PR to incorporate changes in #452?

sure!

The work was duplicated in other PR (#452) too which is pulled here after the discussion with @pohly

@humblec
Copy link
Contributor Author

humblec commented Jul 23, 2020

@xing-yang @msau42 @jsafrane ptal.

go.mod Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
@@ -16,7 +18,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/util/workqueue"
"k8s.io/klog"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/controller"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v6/controller"
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to wait for the next release which depends on k8s 1.19

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm.. bit confused.. we already have this import available in sig-s-l-e-provisioner with v6.0.0 release. https://github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/releases/tag/v6.0.0. So that should be enough ,Isnt it @xing-yang

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jul 23, 2020

@humblec: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kubernetes-csi-external-provisioner-1-15-on-kubernetes-1-15 16847b8 link /test pull-kubernetes-csi-external-provisioner-1-15-on-kubernetes-1-15

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your 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. I understand the commands that are listed here.

@xing-yang
Copy link
Contributor

The latest is v0.19.0-rc.2

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
@humblec humblec mentioned this pull request Jul 24, 2020
@humblec
Copy link
Contributor Author

humblec commented Jul 24, 2020

The latest is v0.19.0-rc.2

sure, using it in the updated commit.

@humblec
Copy link
Contributor Author

humblec commented Jul 24, 2020

@xing-yang @msau42 @jsafrane ptal.

Copy link
Contributor

@xing-yang xing-yang left a comment

Choose a reason for hiding this comment

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

Need a sig-storage-lib-external-provisioner v7 or v7-rc1 release. Other than that, it looks good to me.

@@ -39,7 +38,7 @@ import (
utilflag "k8s.io/component-base/cli/flag"
csitrans "k8s.io/csi-translation-lib"
"k8s.io/klog"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/controller"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v6/controller"
Copy link
Contributor

Choose a reason for hiding this comment

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

Waiting for a v7 or v7-rc1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xing-yang v7 update can be a separate PR too.

@msau42
Copy link
Collaborator

msau42 commented Jul 29, 2020

/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 Jul 29, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: humblec, msau42

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 Jul 29, 2020
@k8s-ci-robot k8s-ci-robot merged commit fbac058 into kubernetes-csi:master Jul 29, 2020
kbsonlong pushed a commit to kbsonlong/external-provisioner that referenced this pull request Dec 29, 2023
…go_modules/google.golang.org/grpc-1.54.0

Bump google.golang.org/grpc from 1.53.0 to 1.54.0
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.

None yet

5 participants