Skip to content

Commit

Permalink
Using TOTAL_POD_COUNT for wait and non-wait messages (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurnben authored Jun 18, 2020
1 parent 0adc72d commit 9926ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ if [[ " $@ " =~ " --watch " ]]; then
whatsLeft=`oc -n ${TARGET_NAMESPACE} get pods | grep -v -e "Completed" -e "1/1 Running" -e "2/2 Running" -e "3/3 Running" -e "4/4 Running" -e "READY STATUS" | wc -l`
RUNNING_PODS=$(oc -n ${TARGET_NAMESPACE} get pods | grep -v -e "Completed" | tail -n +2 | wc -l | tr -d '[:space:]')
if [ "https://$CONSOLE_URL" == "https://multicloud-console.apps.${HOST_URL}" ] && [ ${whatsLeft} -eq 0 ]; then
if [ $RUNNING_PODS -ge 35 ]; then
if [ $RUNNING_PODS -ge ${TOTAL_POD_COUNT} ]; then
COMPLETE=0
break
fi
Expand Down Expand Up @@ -245,7 +245,7 @@ if [ "${OS}" == "darwin" ]; then
echo "NOTE: watch executable not found. Perform \"brew install watch\" to use the command above or use \"./start.sh --watch\" "
fi
else
echo "Deploying, use \"watch oc -n ${TARGET_NAMESPACE} get pods\" to monitor progress. Expect around 35 pods"
echo "Deploying, use \"watch oc -n ${TARGET_NAMESPACE} get pods\" to monitor progress. Expect around ${TOTAL_POD_COUNT} pods"
fi


0 comments on commit 9926ebf

Please sign in to comment.