mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
e2e: require minimum completeness in deployment tests
This commit is contained in:
parent
c7b53794d0
commit
3921a2a2f6
@ -3161,9 +3161,7 @@ func WaitForDeploymentStatusValid(c clientset.Interface, d *extensions.Deploymen
|
||||
}
|
||||
|
||||
// When the deployment status and its underlying resources reach the desired state, we're done
|
||||
if deployment.Status.Replicas == *(deployment.Spec.Replicas) &&
|
||||
deployment.Status.UpdatedReplicas == *(deployment.Spec.Replicas) &&
|
||||
deployment.Status.AvailableReplicas == *(deployment.Spec.Replicas) {
|
||||
if deploymentutil.DeploymentComplete(deployment, &deployment.Status) {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
@ -3229,11 +3227,7 @@ func WaitForDeploymentStatus(c clientset.Interface, d *extensions.Deployment) er
|
||||
}
|
||||
|
||||
// When the deployment status and its underlying resources reach the desired state, we're done
|
||||
if deployment.Status.Replicas == *(deployment.Spec.Replicas) &&
|
||||
deployment.Status.UpdatedReplicas == *(deployment.Spec.Replicas) {
|
||||
return true, nil
|
||||
}
|
||||
return false, nil
|
||||
return deploymentutil.DeploymentComplete(deployment, &deployment.Status), nil
|
||||
})
|
||||
|
||||
if err == wait.ErrWaitTimeout {
|
||||
|
Loading…
Reference in New Issue
Block a user