mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #79160 from vikaschoudhary16/e2e-upgrade-flake
e2e Flake: Pass updated deployment for comparison of replica count
This commit is contained in:
commit
06656ce1ae
@ -159,13 +159,13 @@ func (t *DeploymentUpgradeTest) Test(f *framework.Framework, done <-chan struct{
|
|||||||
|
|
||||||
// Verify the upgraded deployment is active by scaling up the deployment by 1
|
// Verify the upgraded deployment is active by scaling up the deployment by 1
|
||||||
ginkgo.By(fmt.Sprintf("Scaling up replicaset of deployment %q by 1", deploymentName))
|
ginkgo.By(fmt.Sprintf("Scaling up replicaset of deployment %q by 1", deploymentName))
|
||||||
_, err = e2edeploy.UpdateDeploymentWithRetries(c, ns, deploymentName, func(deployment *apps.Deployment) {
|
deploymentWithUpdatedReplicas, err := e2edeploy.UpdateDeploymentWithRetries(c, ns, deploymentName, func(deployment *apps.Deployment) {
|
||||||
*deployment.Spec.Replicas = *deployment.Spec.Replicas + 1
|
*deployment.Spec.Replicas = *deployment.Spec.Replicas + 1
|
||||||
})
|
})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
ginkgo.By(fmt.Sprintf("Waiting for deployment %q to complete after scaling", deploymentName))
|
ginkgo.By(fmt.Sprintf("Waiting for deployment %q to complete after scaling", deploymentName))
|
||||||
framework.ExpectNoError(e2edeploy.WaitForDeploymentComplete(c, deployment))
|
framework.ExpectNoError(e2edeploy.WaitForDeploymentComplete(c, deploymentWithUpdatedReplicas))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Teardown cleans up any remaining resources.
|
// Teardown cleans up any remaining resources.
|
||||||
|
Loading…
Reference in New Issue
Block a user