mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Update dns autoscaler test to look at node allocatable instead of capacity
This commit is contained in:
parent
22ec3b0edd
commit
903c2301cf
@ -252,7 +252,7 @@ func getSchedulableCores(nodes []v1.Node) int64 {
|
|||||||
var sc resource.Quantity
|
var sc resource.Quantity
|
||||||
for _, node := range nodes {
|
for _, node := range nodes {
|
||||||
if !node.Spec.Unschedulable {
|
if !node.Spec.Unschedulable {
|
||||||
sc.Add(node.Status.Capacity[v1.ResourceCPU])
|
sc.Add(node.Status.Allocatable[v1.ResourceCPU])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user