From 05559c691b5311d308b55ad452973517f63802bf Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Wed, 23 Oct 2024 07:06:26 -0500 Subject: [PATCH] chore(ci): wait for app to deploy after upgrade (#1365) --- e2e/scripts/check-postupgrade-state.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/scripts/check-postupgrade-state.sh b/e2e/scripts/check-postupgrade-state.sh index 5f9580819..734aae44c 100755 --- a/e2e/scripts/check-postupgrade-state.sh +++ b/e2e/scripts/check-postupgrade-state.sh @@ -39,7 +39,8 @@ main() { fi # ensure that new app pods exist - if ! kubectl get pods -n kotsadm -l app=second | grep -q Running ; then + # wait for new app pods to be running + if ! retry 5 kubectl get pods -n kotsadm -l app=second | grep -q Running ; then echo "no pods found for second app version" kubectl get pods -n kotsadm exit 1