From 9a853098af50eb50b8ece410531f0c273649b322 Mon Sep 17 00:00:00 2001 From: Lemon-miaow Date: Sat, 26 Sep 2026 19:48:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20release=20=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E5=8F=AA=E5=9C=A8=E5=AD=98=E5=9C=A8=20felis-postgres=20?= =?UTF-8?q?=E6=97=B6=E6=A3=80=E6=9F=A5=E5=AE=83=EF=BC=8C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E4=BB=8D=E5=9C=A8=E5=AE=BF=E4=B8=BB=E6=9C=BA=E7=9A=84?= =?UTF-8?q?=E6=97=A7=E7=89=88=E6=9C=AC=E4=B8=8D=E5=86=8D=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/e2e_check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy/e2e_check.sh b/deploy/e2e_check.sh index 1235571..fa5dd33 100644 --- a/deploy/e2e_check.sh +++ b/deploy/e2e_check.sh @@ -30,7 +30,12 @@ check() { # label command... check "felis version runs" sh -c '/usr/local/bin/felis version | grep -q "^felis "' -for d in felis-postgres felis-api felis-operator registry; do +deploys=(felis-api felis-operator registry) +# A release may still run the database on the host; the upgrade moves it into felis-postgres. +if [ "$phase" != release ] || "${KUBECTL[@]}" -n felis get deploy/felis-postgres >/dev/null 2>&1; then + deploys=(felis-postgres "${deploys[@]}") +fi +for d in "${deploys[@]}"; do check "deployment ${d} is rolled out" "${KUBECTL[@]}" -n felis rollout status "deploy/${d}" --timeout=180s done