Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
remove uses of github.com/golang/glog
Browse files Browse the repository at this point in the history
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.

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

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jan 28, 2022
1 parent fd960f1 commit 83f73b6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 1,506 deletions.
9 changes: 0 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions api/client/clientset/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
composev1alpha3 "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1alpha3"
composev1beta1 "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1"
composev1beta2 "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2"
glog "github.com/golang/glog"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
Expand Down Expand Up @@ -100,7 +99,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {

cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
if err != nil {
glog.Errorf("failed to create the DiscoveryClient: %v", err)
return nil, err
}
return &cs, nil
Expand Down
191 changes: 0 additions & 191 deletions vendor/github.com/golang/glog/LICENSE

This file was deleted.

Loading

0 comments on commit 83f73b6

Please sign in to comment.