Skip to content

Commit

Permalink
fix bug when deployment are killed too earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax committed May 7, 2024
1 parent f31362f commit 40a19ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pod-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 40a19ed

Please sign in to comment.