Merge pull request #120046 from chansuke/feature/update-the-function-to-get-nodes
Optimize test for scalability by using `GetBoundedReadySchedulableNodes()`
This commit is contained in:
commit
e1788034c6
@ -118,9 +118,7 @@ var _ = common.SIGDescribe("[Feature:IPv6DualStack]", func() {
|
|||||||
|
|
||||||
// get all schedulable nodes to determine the number of replicas for pods
|
// get all schedulable nodes to determine the number of replicas for pods
|
||||||
// this is to ensure connectivity from all nodes on cluster
|
// this is to ensure connectivity from all nodes on cluster
|
||||||
// FIXME: tests may be run in large clusters. This test is O(n^2) in the
|
nodeList, err := e2enode.GetBoundedReadySchedulableNodes(ctx, cs, 3)
|
||||||
// number of nodes used. It should use GetBoundedReadySchedulableNodes().
|
|
||||||
nodeList, err := e2enode.GetReadySchedulableNodes(ctx, cs)
|
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
replicas := int32(len(nodeList.Items))
|
replicas := int32(len(nodeList.Items))
|
||||||
|
Loading…
Reference in New Issue
Block a user