Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Nov 21, 2024
1 parent cf536ca commit 2d3f738
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Monitor Pods in Kind
run: |
for i in {1..200}; do
for i in {1..100}; do
MIGRATE_STATUS=$(kubectl get pods -l job-name=spicedb-cr-migrate -o jsonpath='{.status.containerStatuses[0].ready}')
if [ "$MIGRATE_STATUS" = "Completed" ]; then
echo "SpiceDB migration completed."
Expand All @@ -27,16 +27,20 @@ jobs:
echo "SpiceDB migration failed."
exit 1
fi
sleep 1
done
for i in {1..100}; do
ZK_STATUS=$(kubectl get pods my-cluster-zookeeper-0 -o jsonpath='{.status.phase}')
ZK_READY=$(kubectl get pods my-cluster-zookeeper-0 -o jsonpath='{.status.containerStatuses[0].ready}')
if [ "$ZK_STATUS" = "Running" ] && [ "$ZK_READY" = "true" ]; then
echo "Zookeeper is running and ready."
exit 0
else
echo "Zookeeper is not ready yet. Status: $ZK_STATUS, Ready: $ZK_READY"
fi
sleep 2
sleep 1
done
echo "Timeout reached while waiting for Zookeeper to be ready."
Expand Down

0 comments on commit 2d3f738

Please sign in to comment.