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.
This commit is contained in:
Lubomir I. Ivanov 2020-03-04 01:35:17 +02:00
parent 861c918a44
commit b2677b1e57

View File

@ -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)