mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Fix getting pool size in autoscaling e2e tests
This commit is contained in:
parent
852e7f7bfa
commit
0c110be0b5
@ -1326,7 +1326,7 @@ func getPoolInitialSize(poolName string) int {
|
||||
// get initial node count
|
||||
args := []string{"container", "node-pools", "describe", poolName, "--quiet",
|
||||
"--cluster=" + framework.TestContext.CloudConfig.Cluster,
|
||||
"--format=value(initialNodeCount)"}
|
||||
"--format=\"value(initialNodeCount)\""}
|
||||
output, err := execCmd(getGcloudCommand(args)...).CombinedOutput()
|
||||
glog.Infof("Node-pool initial size: %s", output)
|
||||
framework.ExpectNoError(err)
|
||||
@ -1338,7 +1338,7 @@ func getPoolInitialSize(poolName string) int {
|
||||
// get number of node pools
|
||||
args = []string{"container", "node-pools", "describe", poolName, "--quiet",
|
||||
"--cluster=" + framework.TestContext.CloudConfig.Cluster,
|
||||
"--format=value(instanceGroupUrls)"}
|
||||
"--format=\"value(instanceGroupUrls)\""}
|
||||
output, err = execCmd(getGcloudCommand(args)...).CombinedOutput()
|
||||
framework.ExpectNoError(err)
|
||||
nodeGroupCount := len(strings.Split(string(output), ";"))
|
||||
|
Loading…
Reference in New Issue
Block a user