Skip to content

Commit

Permalink
Change test script
Browse files Browse the repository at this point in the history
  • Loading branch information
hamedsalim1999 authored Apr 7, 2024
1 parent 44083a3 commit 875eaac
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ jobs:
- name: Wait for gatewayd to start
run: |
for ((i=0; i<5; i++)); do
status=$(kubectl get pod | grep gatewayd | awk '{print $2}' | grep 0)
sleep 60
if [ -z "$status" ]; then
echo "It's not okay"
deployment_status=$(kubectl get deployment gatewayd | awk '{print $2}' | grep 0)
if [ -z "$deployment_status" ]; then
echo "Deployment is ready"
break
else
echo "Deployment is not ready"
if [ $i -eq 4 ]; then
exit 1
fi
else
echo "It's okay"
break
fi
sleep 60
done

0 comments on commit 875eaac

Please sign in to comment.