Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-garg committed Feb 7, 2019
1 parent 5f0eca7 commit d3fb745
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vars/deploy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ def verifyDeployments(ns, dcs) {
openshift.withCluster() {
openshift.withProject("${ns}") {
def latestDeploymentVersion = openshift.selector('dc', "${dc.metadata.name}").object().status.latestVersion
def rc = openshift.selector('rc', "${dc.metadata.name}-${latestDeploymentVersion}")
rc.untilEach(1) {
def rcMap = it.object()
rcMap.status.replicas.equals(rcMap.status.readyReplicas)
def pods = openshift.selector('pods', [deployment: "${dc.metadata.name}-${latestDeploymentVersion}"])
pods.untilEach(1) {
it.object().status.containerStatuses.every {
it.ready
}
}
}
}
Expand Down

0 comments on commit d3fb745

Please sign in to comment.