Skip to content

Commit 2632067

Browse files
committed
K8SPG-651: wait longer for migration-backup-s3-pgbackrest-restore
1 parent 7d21413 commit 2632067

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

e2e-tests/tests/migration-backup-s3/09-deploy-cluster.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ commands:
2222
' - |
2323
kubectl -n $NAMESPACE apply -f -
2424
25-
sleep 5
25+
wait_time=20
26+
retry=0
27+
until [[ $(kubectl get job -n $NAMESPACE | grep 'migration-backup-s3-pgbackrest-restore') ]]; do
28+
sleep 1
29+
let retry+=1
30+
if [[ $retry -ge $wait_time ]]; then
31+
exit 1
32+
fi
33+
done
2634
kubectl -n $NAMESPACE wait --for=condition=Complete job/migration-backup-s3-pgbackrest-restore --timeout=360s
2735
timeout: 300

0 commit comments

Comments
 (0)