From 472a66aee188e26ac9651f005ccd62d51db84157 Mon Sep 17 00:00:00 2001 From: dingh Date: Wed, 12 Aug 2015 11:16:40 +0800 Subject: [PATCH] Update comments. Change limit to request in the comments for CheckPodsExceedingFreeResources() --- plugin/pkg/scheduler/algorithm/predicates/predicates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }