Skip to content

Commit

Permalink
USe same approche for gatewayd
Browse files Browse the repository at this point in the history
  • Loading branch information
hamedsalim1999 authored Apr 7, 2024
1 parent 875eaac commit 7d30602
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,13 @@ jobs:
kubectl rollout status --watch deployment/gatewayd --timeout=5m
- name: Wait for gatewayd to start
run: |
for ((i=0; i<5; i++)); do
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
fi
sleep 60
for n in [ 0 1 2 3 4 5 6 7 8 9 ]
do
if kubectl get deployment gatewayd | awk '{print $2}' | grep 1/1
then
exit 0
fi
sleep 30
done
echo gatewayd did not start within 300 seconds!
exit 1

0 comments on commit 7d30602

Please sign in to comment.