Fix frontend verify-deploy: remove stale 60s age filter

The age filter rejected pods older than 60s, but by the time the
verify step runs after build+publish+deploy, the new pods are often
already past that window. The image tag check is sufficient to
identify the correct deployment.
This commit is contained in:
Viktor Barzin 2026-02-21 23:50:20 +00:00
parent 0bb7e4c723
commit a742f9bb65
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -135,13 +135,12 @@ steps:
-H "Authorization: Bearer $TOKEN" \ -H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" | \ -H "Accept: application/json" | \
jq --arg img "$EXPECTED_IMAGE" '[.items[] | select( jq --arg img "$EXPECTED_IMAGE" '[.items[] | select(
(now - (.status.startTime | fromdateiso8601)) < 60 and
(.status.containerStatuses[]? | .ready == true) and (.status.containerStatuses[]? | .ready == true) and
(.spec.containers[]? | .image == $img) (.spec.containers[]? | .image == $img)
) | {name: .metadata.name, age: (now - (.status.startTime | fromdateiso8601) | floor), image: .spec.containers[0].image, started: .status.startTime}]') ) | {name: .metadata.name, age: (now - (.status.startTime | fromdateiso8601) | floor), image: .spec.containers[0].image, started: .status.startTime}]')
COUNT=$(echo "$RESULT" | jq 'length') COUNT=$(echo "$RESULT" | jq 'length')
echo "Attempt $i/60: $COUNT pod(s) younger than 60s, ready, running $EXPECTED_IMAGE" echo "Attempt $i/60: $COUNT pod(s) ready, running $EXPECTED_IMAGE"
if [ "$COUNT" -gt 0 ]; then if [ "$COUNT" -gt 0 ]; then
echo "$RESULT" | jq -r '.[] | " \(.name) age=\(.age)s image=\(.image) started=\(.started)"' echo "$RESULT" | jq -r '.[] | " \(.name) age=\(.age)s image=\(.image) started=\(.started)"'