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

vendor: compose-on-kubernetes v0.5.0 to remove use of github.com/golang/glog #3411

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

thaJeztah
Copy link
Member

glog has the same issue as k8s.io/klog, and is calling user.Current() inside an init(); see kubernetes/klog@466fbb6

Calling user.Current() on Windows can result in remove connections being made to get the user's information, which can be a heavy call. See #2420

glog was only used in a single location in compose-on-kubernetes, so we may as well remove it.

compose-on-kubernetes has been archived, so (for now) vendoring from my fork (thaJeztah/compose-on-kubernetes#1), but we should consider to temporarily un-archive it, and get this fix in upstream.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2022

Codecov Report

Merging #3411 (a3c1314) into master (c780f7c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3411   +/-   ##
=======================================
  Coverage   57.33%   57.33%           
=======================================
  Files         304      304           
  Lines       26379    26379           
=======================================
  Hits        15124    15124           
  Misses      10329    10329           
  Partials      926      926           

@thaJeztah thaJeztah force-pushed the no_glog branch 2 times, most recently from d0b13aa to 357827f Compare January 28, 2022 10:43
@thaJeztah
Copy link
Member Author

Moved the vendor-script changes to #3412, and temporarily rebased this one on top

…ng/glog

glog has the same issue as k8s.io/klog, and is calling `user.Current()`
inside an `init()`; see kubernetes/klog@466fbb6

Calling `user.Current()` on Windows can result in remove connections being
made to get the user's information, which can be a heavy call. See docker#2420

glog was only used in a single location in compose-on-kubernetes, so we may as
well remove it.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah changed the title vendor: update compose-on-kubernetes to remove use of github.com/golang/glog vendor: compose-on-kubernetes v0.5.0 to remove use of github.com/golang/glog Feb 14, 2022
@thaJeztah thaJeztah marked this pull request as ready for review February 14, 2022 13:55
@thaJeztah thaJeztah added this to the 21.xx milestone Feb 14, 2022
@thaJeztah thaJeztah added the kind/bugfix PR's that fix bugs label Feb 14, 2022
Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

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

🎉

@thaJeztah
Copy link
Member Author

Let me bring this one in; thanks for reviewing!

@thaJeztah thaJeztah merged commit cf8c4ba into docker:master Feb 14, 2022
@thaJeztah thaJeztah deleted the no_glog branch February 14, 2022 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants