You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err:=fmt.Errorf("score plugin %q returns an invalid score %q, it should in the range of [MinNodeScore, MaxNodeScore] after normalizing", pl.Name(), nodeScore.Score)
412
+
err:=fmt.Errorf("score plugin %q returns an invalid score %v, it should in the range of [%v, %v] after normalizing", pl.Name(), nodeScore.Score, MinNodeScore, MaxNodeScore)
439
413
errCh.SendErrorWithCancel(err, cancel)
440
414
return
441
415
}
442
-
443
416
nodeScoreList[i].Score=nodeScore.Score*weight
444
417
}
445
418
})
446
-
447
419
iferr:=errCh.ReceiveError(); err!=nil {
448
-
msg:=fmt.Sprintf("error while applying score weights for pod %q: %v", pod.Name, err)
420
+
msg:=fmt.Sprintf("error while applying score defaultWeights for pod %q: %v", pod.Name, err)
449
421
klog.Error(msg)
450
-
returnNewStatus(Error, msg)
422
+
returnnil, NewStatus(Error, msg)
451
423
}
452
424
453
-
returnnil
425
+
returnpluginToNodeScores, nil
454
426
}
455
427
456
428
// RunPrebindPlugins runs the set of configured prebind plugins. It returns a
0 commit comments