Merge pull request #105083 from MrHohn/fix-autoscaler-test-value

Fix core calculation for dns autoscaler test.
This commit is contained in:
Kubernetes Prow Robot 2021-09-16 20:41:01 -07:00 committed by GitHub
commit 47f381ba5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,13 +255,7 @@ func getSchedulableCores(nodes []v1.Node) int64 {
sc.Add(node.Status.Allocatable[v1.ResourceCPU])
}
}
scInt64, scOk := sc.AsInt64()
if !scOk {
framework.Logf("Unable to compute integer values of schedulable cores in the cluster")
return 0
}
return scInt64
return sc.Value()
}
func fetchDNSScalingConfigMap(c clientset.Interface) (*v1.ConfigMap, error) {