diff --git a/.drone.yml b/.drone.yml index 051b162..9945003 100644 --- a/.drone.yml +++ b/.drone.yml @@ -135,13 +135,12 @@ steps: -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/json" | \ jq --arg img "$EXPECTED_IMAGE" '[.items[] | select( - (now - (.status.startTime | fromdateiso8601)) < 60 and (.status.containerStatuses[]? | .ready == true) and (.spec.containers[]? | .image == $img) ) | {name: .metadata.name, age: (now - (.status.startTime | fromdateiso8601) | floor), image: .spec.containers[0].image, started: .status.startTime}]') 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 echo "$RESULT" | jq -r '.[] | " \(.name) age=\(.age)s image=\(.image) started=\(.started)"'