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
This commit is contained in:
Lubomir I. Ivanov 2020-03-04 01:35:17 +02:00 committed by Kubernetes Publisher
parent 83e04303df
commit 38dc9a8fb0

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)