Skip to content

Commit

Permalink
wait for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Nov 20, 2024
1 parent 036b17a commit 98f499c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ jobs:
fi
sleep 1
done
MIGRATE_STATUS=$(kubectl get pods -l job-name=spicedb-cr-migrate -o jsonpath='{.items[0].status.phase}')
if [ "$MIGRATE_STATUS" = "Completed" ]; then
echo "SpiceDB migration completed."
break
elif [ "$MIGRATE_STATUS" = "Failed" ]; then
echo "SpiceDB migration failed."
exit 1
fi
sleep 2
done
echo "Timeout reached while waiting for the test pod to complete."
exit 1
Expand Down

0 comments on commit 98f499c

Please sign in to comment.