Created
February 7, 2020 19:50
-
-
Save ramius345/c332e57a72db8736d9cd2924690fc84c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleep 1 | |
while ( rc == null ) { | |
try { | |
dc = openshift.selector("dc","${appName}-httpd").object() | |
dc_version = dc.status.latestVersion | |
echo "Version of dc is ${dc_version}" | |
rc = openshift.selector("rc", "${appName}-httpd-${dc_version}").object() | |
break | |
} catch( Exception e) { | |
sleep 1 | |
} | |
} | |
echo "Waiting for ReplicationController ${appName}-httpd-${dc_version} to be ready" | |
while (rc.spec.replicas != rc.status.readyReplicas) { | |
sleep 5 | |
dc = openshift.selector("dc","${appName}-httpd").object() | |
dc_version = dc.status.latestVersion | |
echo "Version of dc is ${dc_version}" | |
rc = openshift.selector("rc", "${appName}-httpd-${dc_version}").object() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment