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

From glog to klog #25

Merged
merged 5 commits into from
Feb 5, 2019
Merged

From glog to klog #25

merged 5 commits into from
Feb 5, 2019

Conversation

jayunit100
Copy link
Contributor

@jayunit100 jayunit100 commented Feb 5, 2019

Other repos depending on this w/ lots of klog deps seem to collide, this should fix that ... (specifically... this was burning my in external-storage w/ runtime errors showing up due to flag overrides...)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 5, 2019
@jayunit100
Copy link
Contributor Author

cc @dims

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 5, 2019
@pohly
Copy link
Contributor

pohly commented Feb 5, 2019

We just ran into this with kubernetes-csi/external-provisioner (kubernetes-csi/external-provisioner#219). Please merge and prepare a new release with that change.

Copy link
Contributor

@wongma7 wongma7 left a comment

Choose a reason for hiding this comment

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

thanks. had no idea they cannot coexist.

@@ -692,6 +692,7 @@ func (ctrl *ProvisionController) Run(_ <-chan struct{}) {
ctrl.leaderElectionNamespace,
strings.Replace(ctrl.provisionerName, "/", "-", -1),
ctrl.client.CoreV1(),
nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

ctrl.client.CoordinationV1()

@@ -692,6 +692,7 @@ func (ctrl *ProvisionController) Run(_ <-chan struct{}) {
ctrl.leaderElectionNamespace,
strings.Replace(ctrl.provisionerName, "/", "-", -1),
ctrl.client.CoreV1(),
nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not obvious why switching to glog depends on this change. It's probably related to some dependency change, but does that have to be in this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, master branch of this repo is following master branch k8s.io/*. so when k8s.io breaks something (i made this breaking change actually) we may need to update random things for builds to be green

Copy link
Contributor Author

Choose a reason for hiding this comment

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

req'd for compilation on my end

Copy link
Contributor

Choose a reason for hiding this comment

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

That would be an argument in favor of having Gopk.toml + Gopkg.lock file in the repo: with those present, someone who works on the source can focus on one aspect (like adding k8s.io/klog) without having to deal with unrelated changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes. I want to avoid doing that because in my experience imposing explicit version requirements for the library via a checked-in Gopkg.toml+lock can cause headaches for consumers. e.g. the Gopkg.toml will say this library needs k8s.io/* master branch but really it will work also with release-1.14...if another dependency needs release-1.14, can dep figure out to use release-1.14 or will it complain that there the needs are unsatisfiable? (bit of a contrived example)

Anyway, if master branch is supposed to track k8s.io/* master, ideally I should be periodically syncing it up, I'll look into adding at travis cron job let me know when something needs updating to reduce headaches for contributors

Copy link
Contributor

Choose a reason for hiding this comment

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

You can have an empty Gopk.toml (or, better, a minimal one which just records the real constraints) and just record what's known to work in Gopkg.lock. Then people working with the source and Travis CI can use Gopkg.lock to fetch exactly the same source as the last person working on a dependency update (via dep ensure without -update). Downstream users will just ignore the Gopkg.lock.

@wongma7
Copy link
Contributor

wongma7 commented Feb 5, 2019

/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 Feb 5, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jayunit100, wongma7

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 Feb 5, 2019
@k8s-ci-robot k8s-ci-robot merged commit 6719832 into kubernetes-sigs:master Feb 5, 2019
@pohly
Copy link
Contributor

pohly commented Feb 5, 2019

Are you going to tag a release or should external-provisioner update to the master branch as part of the klog migration?

@wongma7
Copy link
Contributor

wongma7 commented Feb 5, 2019 via email

@jayunit100
Copy link
Contributor Author

thanks guys, TBH this was part of a hackathon :) but im happy to help w/ the continued refactoring moving forward. ill be in sig-storage if anyone wants to discuss further.

@pohly
Copy link
Contributor

pohly commented Feb 6, 2019 via email

humblec pushed a commit to humblec/sig-storage-lib-external-provisioner that referenced this pull request Jun 18, 2020
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. 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.

4 participants