Use kubectl rollout to wait for all deployments to be ready
@@ -34,11 +34,8 @@ helm install \
# wait for helm deploy to come up
echo "waiting for pods to become ready"
-JSONPATH='{range .items[*]}{@.status.phase};{end}'
-until kubectl get pod --namespace $BINDER_TEST_NAMESPACE -o jsonpath="$JSONPATH" | grep -q -i "^\(running;\)\+$"; do
- kubectl get pod --namespace $BINDER_TEST_NAMESPACE
- sleep 1
-done
+kubectl --namespace=$BINDER_TEST_NAMESPACE get deployment -o name | xargs -L1 kubectl --namespace=$BINDER_TEST_NAMESPACE rollout status --watch
+
echo "waiting for servers to become responsive"
until curl $BINDER_TEST_URL > /dev/null; do
sleep 1
