Reduce verbose logs in MetaAllocator

"Finished sync for CIDRs" was logged every 10 mins even there was no
change.

Signed-off-by: Quan Tian <qtian@vmware.com>
This commit is contained in:
Quan Tian 2024-01-19 19:43:34 +08:00
parent 9c1c603fbe
commit 0ef42133a1

View File

@ -178,7 +178,7 @@ func (c *MetaAllocator) processNextItem() bool {
func (c *MetaAllocator) syncTree() error {
now := time.Now()
defer func() {
klog.Infof("Finished sync for CIDRs took %v", time.Since(now))
klog.V(2).Infof("Finished sync for CIDRs took %v", time.Since(now))
}()
serviceCIDRs, err := c.serviceCIDRLister.List(labels.Everything())