Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog - klog as explicit InitFlags() so we add them as necessary - we update the other repositories that we vendor that made a similar change from glog to klog * github.com/kubernetes/repo-infra * k8s.io/gengo/ * k8s.io/kube-openapi/ * github.com/google/cadvisor - Entirely remove all references to glog - Fix some tests by explicit InitFlags in their init() methods Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
This commit is contained in:
@@ -41,9 +41,9 @@ import (
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"golang.org/x/crypto/ssh"
|
||||
"golang.org/x/net/websocket"
|
||||
"k8s.io/klog"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -4865,7 +4865,7 @@ func ListNamespaceEvents(c clientset.Interface, ns string) error {
|
||||
return err
|
||||
}
|
||||
for _, event := range ls.Items {
|
||||
glog.Infof("Event(%#v): type: '%v' reason: '%v' %v", event.InvolvedObject, event.Type, event.Reason, event.Message)
|
||||
klog.Infof("Event(%#v): type: '%v' reason: '%v' %v", event.InvolvedObject, event.Type, event.Reason, event.Message)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -4904,7 +4904,7 @@ func (p *E2ETestNodePreparer) PrepareNodes() error {
|
||||
sum += v.Count
|
||||
for ; index < sum; index++ {
|
||||
if err := testutils.DoPrepareNode(p.client, &nodes.Items[index], v.Strategy); err != nil {
|
||||
glog.Errorf("Aborting node preparation: %v", err)
|
||||
klog.Errorf("Aborting node preparation: %v", err)
|
||||
return err
|
||||
}
|
||||
p.nodeToAppliedStrategy[nodes.Items[index].Name] = v.Strategy
|
||||
@@ -4922,7 +4922,7 @@ func (p *E2ETestNodePreparer) CleanupNodes() error {
|
||||
strategy, found := p.nodeToAppliedStrategy[name]
|
||||
if found {
|
||||
if err = testutils.DoCleanupNode(p.client, name, strategy); err != nil {
|
||||
glog.Errorf("Skipping cleanup of Node: failed update of %v: %v", name, err)
|
||||
klog.Errorf("Skipping cleanup of Node: failed update of %v: %v", name, err)
|
||||
encounteredError = err
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user