Skip to content

Commit

Permalink
Remove last references to klog
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwickenden committed Mar 10, 2021
1 parent bb17e60 commit 5967ad5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/kubelet/certificate/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
"k8s.io/client-go/util/certificate"
"k8s.io/client-go/util/certificate/csr"
"k8s.io/client-go/util/keyutil"
"k8s.io/klog"
"k8s.io/kubectl/pkg/scheme"
)

Expand Down Expand Up @@ -96,7 +95,7 @@ func LoadClientCert(ctx context.Context, kubeconfigPath, bootstrapPath, certDir
}

if err := waitForServer(ctx, *bootstrapClientConfig, 1*time.Minute); err != nil {
klog.Warningf("Error waiting for apiserver to come up: %v", err)
logger.Warning("Error waiting for apiserver to come up: %v", err)
}

certData, err := requestNodeCertificate(ctx, bootstrapClient, keyData, nodeName)
Expand Down Expand Up @@ -231,7 +230,7 @@ func waitForServer(ctx context.Context, cfg restclient.Config, deadline time.Dur
var connected bool
wait.JitterUntil(func() {
if _, err := cli.Get().AbsPath("/healthz").Do(ctx).Raw(); err != nil {
klog.Infof("Failed to connect to apiserver: %v", err)
logger.Info("Failed to connect to apiserver: %v", err)
return
}
cancel()
Expand Down

0 comments on commit 5967ad5

Please sign in to comment.