kube-scheduler: convert the remaining part to use contextual logging

This commit is contained in:
Mengjiao Liu
2023-09-29 10:59:22 +08:00
parent 9ae55e9886
commit b0a73213d6
14 changed files with 95 additions and 85 deletions

View File

@@ -66,7 +66,7 @@ const (
// scheduleOne does the entire scheduling workflow for a single pod. It is serialized on the scheduling algorithm's host fitting.
func (sched *Scheduler) scheduleOne(ctx context.Context) {
logger := klog.FromContext(ctx)
podInfo, err := sched.NextPod()
podInfo, err := sched.NextPod(logger)
if err != nil {
logger.Error(err, "Error while retrieving next pod from scheduling queue")
return