Also rename leftCapacity to leftAllocatable

This commit is contained in:
Binbin Zhao 2017-06-21 00:55:06 -07:00
parent b055246f0a
commit 9cbe992fc5

View File

@ -181,9 +181,9 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
milliCpuPerPod = minPodCPURequest milliCpuPerPod = minPodCPURequest
} }
framework.Logf("Using pod capacity: %vm", milliCpuPerPod) framework.Logf("Using pod capacity: %vm", milliCpuPerPod)
for name, leftCapacity := range nodeToAllocatableMap { for name, leftAllocatable := range nodeToAllocatableMap {
framework.Logf("Node: %v has cpu capacity: %vm", name, leftCapacity) framework.Logf("Node: %v has cpu allocatable: %vm", name, leftAllocatable)
podsNeededForSaturation += (int)(leftCapacity / milliCpuPerPod) podsNeededForSaturation += (int)(leftleftAllocatable / milliCpuPerPod)
} }
By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster CPU and trying to start another one", podsNeededForSaturation)) By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster CPU and trying to start another one", podsNeededForSaturation))