Unverified Commit 9a853098 authored by Lemon-miaow's avatar Lemon-miaow
Browse files

fix(e2e): release 阶段只在存在 felis-postgres 时检查它,数据库仍在宿主机的旧版本不再误报

parent 3b58b397
Loading
Loading
Loading
Loading
+6 −1
Changes for deploy/e2e_check.sh: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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