mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Merge pull request #105083 from MrHohn/fix-autoscaler-test-value
Fix core calculation for dns autoscaler test.
This commit is contained in:
commit
47f381ba5e
@ -255,13 +255,7 @@ func getSchedulableCores(nodes []v1.Node) int64 {
|
|||||||
sc.Add(node.Status.Allocatable[v1.ResourceCPU])
|
sc.Add(node.Status.Allocatable[v1.ResourceCPU])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return sc.Value()
|
||||||
scInt64, scOk := sc.AsInt64()
|
|
||||||
if !scOk {
|
|
||||||
framework.Logf("Unable to compute integer values of schedulable cores in the cluster")
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
return scInt64
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func fetchDNSScalingConfigMap(c clientset.Interface) (*v1.ConfigMap, error) {
|
func fetchDNSScalingConfigMap(c clientset.Interface) (*v1.ConfigMap, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user