From 903c2301cf82fa455f58fd7c74d6f32cd2402ab4 Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Tue, 18 May 2021 16:33:49 -0700 Subject: [PATCH] Update dns autoscaler test to look at node allocatable instead of capacity --- test/e2e/autoscaling/dns_autoscaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/autoscaling/dns_autoscaling.go b/test/e2e/autoscaling/dns_autoscaling.go index f9ea503d6cd..6b4fc1d4b72 100644 --- a/test/e2e/autoscaling/dns_autoscaling.go +++ b/test/e2e/autoscaling/dns_autoscaling.go @@ -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]) } }