mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 08:54:44 +00:00
Log deployment, RSes and pods on waitForDeploymentStatus timeout / condition mismatch
This commit is contained in:
@@ -366,11 +366,7 @@ func testRecreateDeployment(f *Framework) {
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
defer stopDeployment(c, f.Client, ns, deploymentName)
|
||||
|
||||
err = waitForDeploymentStatus(c, ns, deploymentName, replicas, 0, replicas, 0)
|
||||
if err != nil {
|
||||
deployment, _ := c.Extensions().Deployments(ns).Get(deploymentName)
|
||||
Logf("deployment = %+v", deployment)
|
||||
}
|
||||
waitForDeploymentStatus(c, ns, deploymentName, replicas, 0, replicas, 0)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
// Verify that the pods were scaled up and down as expected. We use events to verify that.
|
||||
|
Reference in New Issue
Block a user