- new_status=$(kubectl get pods | grep bpa-api-deployment | awk '{print $3}')
- if [[ $new_status != $curr_status ]]; then
- echo "$(date +%H:%M:%S) - BPA-RESTful-API Pod status: $new_status"
- curr_status=$new_status
- if [[ $new_status == "Running" ]]; then
- break
- fi