diff --git a/pod-status.go b/pod-status.go index 7af6832..44949c8 100644 --- a/pod-status.go +++ b/pod-status.go @@ -17,6 +17,6 @@ func waitUntilAllPodAreReady( logError(err.Error()) return false } - currentDeploymentHasAllPodReady := deployment.Status.Replicas - deployment.Status.ReadyReplicas == 0 + currentDeploymentHasAllPodReady := deployment.Status.Replicas-deployment.Status.ReadyReplicas == 0 && deployment.Status.Replicas > 1 return currentDeploymentHasAllPodReady }