Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzen-y committed Oct 13, 2021
1 parent 243e552 commit c81858e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/v1beta1/scripts/setup-katib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ make deploy

# Wait until all Katib pods is running.
TIMEOUT=120
PODNUM=$(kubectl get deploy -n kubeflow | grep -v NAME | wc -l)
PODNUM=0;
for replicas in $(kubectl get deploy -n kubeflow -o jsonpath='{.items[*].spec.replicas}'); do \
PODNUM=$(( $PODNUM + $replicas ));
done;
# 1 Pod for the cert-generator Job
PODNUM=$((PODNUM + 1))
until kubectl get pods -n kubeflow | grep -E 'Running|Completed' | [[ $(wc -l) -eq $PODNUM ]]; do
Expand Down

0 comments on commit c81858e

Please sign in to comment.