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 to k/k 1.16 #32

Closed
wants to merge 1 commit into from
Closed

Conversation

jichenjc
Copy link

@jichenjc jichenjc commented Sep 24, 2019

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
solving kubernetes/cloud-provider-openstack#702 as I have to include leaderelection file into cloud provider openstack and when running dep ensure I have following error, seems csi-lib-utils still rely on k/k1.14 while conflict to cloud provider openstack on 1.16

Solving failure: No versions of github.com/kubernetes-csi/csi-lib-utils met constraints:
v0.6.1: Could not introduce github.com/kubernetes-csi/csi-lib-utils (from https://github.com/kubernetes-csi/csi-lib-utils)@v0.6.1, as it has a dependency on k8s.io/client-go with constraint kubernetes-1.14.0, which has no overlap with existing constraint kubernetes-1.16.0 from (root)

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot
Copy link
Contributor

Welcome @jichenjc!

It looks like this is your first PR to kubernetes-csi/csi-lib-utils 🎉. 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/csi-lib-utils 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 kind/feature Categorizes issue or PR as related to a new feature. 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 Sep 24, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jichenjc
To complete the pull request process, please assign jsafrane
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 added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. 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 Sep 24, 2019
@pohly
Copy link
Contributor

pohly commented Sep 24, 2019

/assign @andrewsykim

Can you have a look at this? I don't know what the implications will be for other users of this lib if we bump the Kubernetes dependency to 1.16.

The underlying problem is that Kubernetes packages don't have semantic versioning. So even though csi-lib-utils seems to be compatible with any version >= 1.14 (or at least no code changes were necessary to compile with 1.16), we can't specify that in the Gopkg.toml file.

I don't know for sure how Go modules would handle this. I suspect it would allow us to select 1.14 for reproducible builds of csi-lib-utils, but as this isn't a minimal viable version with semantic versioning, users might accidentally pick something older.

@pohly
Copy link
Contributor

pohly commented Sep 24, 2019

Perhaps we can approximate the go mod behavior by removing the constraints from Gopkg.toml?

@jichenjc
Copy link
Author

can we create a new tag e.g 0.6.2 if we bump to k/k 1.16 so older still can rely on 0.6.1? and for newer can rely on 0.6.2

the go mod might be another way to try as well

@andrewsykim
Copy link
Contributor

andrewsykim commented Sep 25, 2019

@jichenjc would an override in your Gopkg.toml file for the kubernetes dependencies work?

@pohly pohly mentioned this pull request Sep 26, 2019
@pohly
Copy link
Contributor

pohly commented Sep 26, 2019

@jichenjc: can you try whether the switch to go modules (#33) works for you?

@jichenjc
Copy link
Author

ok, will try it later on (holiday approaching), thanks~

@pohly
Copy link
Contributor

pohly commented Oct 4, 2019

PR #33 was merged, please let us know whether this is still needed.

@jichenjc
Copy link
Author

jichenjc commented Oct 6, 2019

let me close this and let me try with go module first, if needed, might open another one. thanks~

@jichenjc jichenjc closed this Oct 6, 2019
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. kind/feature Categorizes issue or PR as related to a new feature. 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.

4 participants