mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Also rename leftCapacity to leftAllocatable
This commit is contained in:
parent
b055246f0a
commit
9cbe992fc5
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user