Refine logging levels in Job, IPAM, and ReplicaSet controllers.

Adjust logging levels in Job, IPAM, and ReplicaSet controllers from
V(0) to V(2), V(4), V(4) respectively to reduce noise. These logs
provide minimal value at the debug level (V(0)), so they have been
adjusted for better log clarity

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@est.tech>
This commit is contained in:
Feruzjon Muyassarov 2025-03-05 12:20:37 +02:00
parent 9d9e1afdf7
commit 4c6971007b
No known key found for this signature in database
GPG Key ID: 7182127248A8650C
3 changed files with 3 additions and 3 deletions

View File

@ -595,7 +595,7 @@ func (jm *Controller) enqueueSyncJobInternal(logger klog.Logger, obj interface{}
// all controllers there will still be some replica instability. One way to handle this is
// by querying the store for all controllers that this rc overlaps, as well as all
// controllers that overlap this rc, and sorting them.
logger.Info("enqueueing job", "key", key, "delay", delay)
logger.V(2).Info("enqueueing job", "key", key, "delay", delay)
jm.queue.AddAfter(key, delay)
}

View File

@ -244,7 +244,7 @@ func (r *rangeAllocator) processNextNodeWorkItem(ctx context.Context) bool {
// Finally, if no error occurs we Forget this item so it does not
// get queue again until another change happens.
r.queue.Forget(obj)
logger.Info("Successfully synced", "key", key)
logger.V(4).Info("Successfully synced", "key", key)
return nil
}(klog.FromContext(ctx), obj)

View File

@ -678,7 +678,7 @@ func (rsc *ReplicaSetController) syncReplicaSet(ctx context.Context, key string)
logger := klog.FromContext(ctx)
startTime := time.Now()
defer func() {
logger.Info("Finished syncing", "kind", rsc.Kind, "key", key, "duration", time.Since(startTime))
logger.V(4).Info("Finished syncing", "kind", rsc.Kind, "key", key, "duration", time.Since(startTime))
}()
namespace, name, err := cache.SplitMetaNamespaceKey(key)