diff --git a/plugin/pkg/scheduler/algorithm/predicates/predicates.go b/plugin/pkg/scheduler/algorithm/predicates/predicates.go index 97ffef13f71..f21a2faf950 100644 --- a/plugin/pkg/scheduler/algorithm/predicates/predicates.go +++ b/plugin/pkg/scheduler/algorithm/predicates/predicates.go @@ -127,12 +127,12 @@ func CheckPodsExceedingFreeResources(pods []*api.Pod, capacity api.ResourceList) fitsCPU := totalMilliCPU == 0 || (totalMilliCPU-milliCPURequested) >= podRequest.milliCPU fitsMemory := totalMemory == 0 || (totalMemory-memoryRequested) >= podRequest.memory if !fitsCPU { - // the pod doesn't fit due to CPU limit + // the pod doesn't fit due to CPU request notFittingCPU = append(notFittingCPU, pod) continue } if !fitsMemory { - // the pod doesn't fit due to Memory limit + // the pod doesn't fit due to Memory request notFittingMemory = append(notFittingMemory, pod) continue }