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:
Kubernetes Prow Robot 2021-05-18 19:15:11 -07:00 committed by GitHub
commit b1ed521950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])
}
}