Merge pull request #124215 from tk3fftk/patch-2

fix: add delay to log message when enqueueing a job
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 03:24:36 -07:00 committed by GitHub
commit 745f56ea2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,7 +563,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)
logger.Info("enqueueing job", "key", key, "delay", delay)
jm.queue.AddAfter(key, delay)
}