mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-03-18 00:22:29 -04:00
Merge pull request #102112 from MrHohn/fix-dns-autoscaler-test
Update dns autoscaler test to look at node allocatable instead of capacity
This commit is contained in:
commit
b1ed521950
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ func getSchedulableCores(nodes []v1.Node) int64 {
|
|||
var sc resource.Quantity
|
||||
for _, node := range nodes {
|
||||
if !node.Spec.Unschedulable {
|
||||
sc.Add(node.Status.Capacity[v1.ResourceCPU])
|
||||
sc.Add(node.Status.Allocatable[v1.ResourceCPU])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue