Skip to content

Commit

Permalink
Merge pull request #3127 from uselagoon/dbaas-counters
Browse files Browse the repository at this point in the history
fix up counter check for dbaas provisioning
  • Loading branch information
tobybellwood authored Apr 28, 2022
2 parents a604be4 + 7515d0b commit 8251fbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OPERATOR_TIMEOUT=180
until kubectl -n ${NAMESPACE} get mariadbconsumer/${SERVICE_NAME} -o yaml | shyaml get-value spec.consumer.database
do
if [ $OPERATOR_COUNTER -lt $OPERATOR_TIMEOUT ]; then
let SERVICE_BROKER_COUNTER=SERVICE_BROKER_COUNTER+1
let OPERATOR_COUNTER=OPERATOR_COUNTER+1
echo "Service for ${SERVICE_NAME} not available yet, waiting for 5 secs"
sleep 5
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OPERATOR_TIMEOUT=180
until kubectl -n ${NAMESPACE} get postgresqlconsumer/${SERVICE_NAME} -o yaml | shyaml get-value spec.consumer.database
do
if [ $OPERATOR_COUNTER -lt $OPERATOR_TIMEOUT ]; then
let SERVICE_BROKER_COUNTER=SERVICE_BROKER_COUNTER+1
let OPERATOR_COUNTER=OPERATOR_COUNTER+1
echo "Service for ${SERVICE_NAME} not available yet, waiting for 5 secs"
sleep 5
else
Expand Down

0 comments on commit 8251fbf

Please sign in to comment.