We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a5e2c commit 321eabaCopy full SHA for 321eaba
k8s/test.sh
@@ -53,7 +53,11 @@ kubectl config set-context --current --namespace=$KUBERNETES_NAMESPACE
53
echo "Context set to namespace: \"$KUBERNETES_NAMESPACE\""
54
kubectl apply --kustomize infrastructure/test
55
__safe_migration_rollout test-postgres
56
-kubectl exec -i deployment/test-postgres -- sh -c "psql -U postgres -c '$(cat infrastructure/test/deployment/assets/init.sql)'" || true
+until kubectl exec -i deployment/test-postgres -- sh -c pg_isready; do
57
+ echo "Waiting for postgres to be ready..."
58
+ sleep 3
59
+done
60
+kubectl exec -i deployment/test-postgres -- sh -c "psql -U postgres -c '$(cat infrastructure/test/deployment/assets/init.sql)'"
61
echo "::endgroup::"
62
63
0 commit comments