Commit 472a66ae authored by dingh's avatar dingh Committed by dinghaiyang

Update comments.

Change limit to request in the comments for CheckPodsExceedingFreeResources()
parent 81fb0f95
...@@ -127,12 +127,12 @@ func CheckPodsExceedingFreeResources(pods []*api.Pod, capacity api.ResourceList) ...@@ -127,12 +127,12 @@ func CheckPodsExceedingFreeResources(pods []*api.Pod, capacity api.ResourceList)
fitsCPU := totalMilliCPU == 0 || (totalMilliCPU-milliCPURequested) >= podRequest.milliCPU fitsCPU := totalMilliCPU == 0 || (totalMilliCPU-milliCPURequested) >= podRequest.milliCPU
fitsMemory := totalMemory == 0 || (totalMemory-memoryRequested) >= podRequest.memory fitsMemory := totalMemory == 0 || (totalMemory-memoryRequested) >= podRequest.memory
if !fitsCPU { if !fitsCPU {
// the pod doesn't fit due to CPU limit // the pod doesn't fit due to CPU request
notFittingCPU = append(notFittingCPU, pod) notFittingCPU = append(notFittingCPU, pod)
continue continue
} }
if !fitsMemory { if !fitsMemory {
// the pod doesn't fit due to Memory limit // the pod doesn't fit due to Memory request
notFittingMemory = append(notFittingMemory, pod) notFittingMemory = append(notFittingMemory, pod)
continue continue
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment