mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #60130 from aleksandra-malinowska/autoscaling-test-fix-14
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix getting pool size in autoscaling e2e tests Command fails due to missing quotation marks, causing tests to fail: ```I0221 01:01:09.140] I0221 01:01:09.138464 1873 cluster_size_autoscaling.go:956] Executing: gcloud container node-pools describe extra-pool --quiet --cluster=e2e-5481 --format=value(initialNodeCount) --zone=us-central1-f --project=k8s-e2e-gci-gke-autoscaling I0221 01:01:09.842] I0221 01:01:09.842393 1873 cluster_size_autoscaling.go:1331] Node-pool initial size: I0221 01:01:09.843] [AfterEach] [sig-autoscaling] Cluster size autoscaling [Slow] ``` ```release-note NONE ```
This commit is contained in:
commit
89156e7abf
@ -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