Add log to see the extender's error

This commit is contained in:
sanposhiho 2022-02-07 02:50:08 +09:00
parent 76cdb57ccf
commit ed23e2162a

View File

@ -464,6 +464,7 @@ func prioritizeNodes(
prioritizedList, weight, err := extenders[extIndex].Prioritize(pod, nodes)
if err != nil {
// Prioritization errors from extender can be ignored, let k8s/other extenders determine the priorities
klog.InfoS("The extender returns an error. The scheduler ignore this error and will continue to schedule the Pod", "error", err, "pod", klog.KObj(pod), "extender", extenders[extIndex].Name())
return
}
mu.Lock()