mirror of https://github.com/k3s-io/k3s
Merge pull request #27536 from mwielgus/log-np-del
Automatic merge from submit-queue Log node-pool deletion in cluster autoscaler tests cc: @piosz @jszczepkowskipull/6/head
commit
3ba5816e46
|
@ -206,10 +206,17 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() {
|
||||||
"--project="+framework.TestContext.CloudConfig.ProjectID,
|
"--project="+framework.TestContext.CloudConfig.ProjectID,
|
||||||
"--zone="+framework.TestContext.CloudConfig.Zone,
|
"--zone="+framework.TestContext.CloudConfig.Zone,
|
||||||
"--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput()
|
"--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput()
|
||||||
defer exec.Command("gcloud", "alpha", "container", "node-pools", "delete", extraPoolName, "--quiet",
|
defer func() {
|
||||||
"--project="+framework.TestContext.CloudConfig.ProjectID,
|
glog.Infof("Deleting node pool %s", extraPoolName)
|
||||||
"--zone="+framework.TestContext.CloudConfig.Zone,
|
output, err := exec.Command("gcloud", "alpha", "container", "node-pools", "delete", extraPoolName, "--quiet",
|
||||||
"--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput()
|
"--project="+framework.TestContext.CloudConfig.ProjectID,
|
||||||
|
"--zone="+framework.TestContext.CloudConfig.Zone,
|
||||||
|
"--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput()
|
||||||
|
if err != nil {
|
||||||
|
glog.Infof("Error: %v", err)
|
||||||
|
}
|
||||||
|
glog.Infof("Node-pool deletion output: %s", output)
|
||||||
|
}()
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
glog.Infof("Creating node-pool: %s", output)
|
glog.Infof("Creating node-pool: %s", output)
|
||||||
framework.ExpectNoError(framework.WaitForClusterSize(c, nodeCount+1, resizeTimeout))
|
framework.ExpectNoError(framework.WaitForClusterSize(c, nodeCount+1, resizeTimeout))
|
||||||
|
|
Loading…
Reference in New Issue