From 38dc9a8fb0d71ce8ad598fa3f22af14b81e1c1c4 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 4 Mar 2020 01:35:17 +0200 Subject: [PATCH] client-go: use klog.V(3) for the cert-rotation controller start/stop Introduce a verbosity level for the start and stop notifications, so that regular calls to commands such as: "kubectl auth ..." would only contain the "yes" / "no" output. Kubernetes-commit: b2677b1e572ae1cd8b823683e88005b7857d8938 --- transport/cert_rotation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/cert_rotation.go b/transport/cert_rotation.go index 0671b29b..918e77f9 100644 --- a/transport/cert_rotation.go +++ b/transport/cert_rotation.go @@ -134,8 +134,8 @@ func (c *dynamicClientCert) Run(stopCh <-chan struct{}) { defer utilruntime.HandleCrash() defer c.queue.ShutDown() - klog.Infof("Starting client certificate rotation controller") - defer klog.Infof("Shutting down client certificate rotation controller") + klog.V(3).Infof("Starting client certificate rotation controller") + defer klog.V(3).Infof("Shutting down client certificate rotation controller") go wait.Until(c.runWorker, time.Second, stopCh)