Merge pull request #12576 from HaiyangDING/patch-1

Update comments.
pull/6/head
Piotr Szczesniak 2015-08-12 12:00:19 +02:00
commit 8eaac8655d
1 changed files with 2 additions and 2 deletions

View File

@ -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
}