change script so it doesn't non-zero exit when no pods exist

This commit is contained in:
E M 2026-04-24 15:45:47 +10:00
parent ffde5e0fdc
commit 580a424086
No known key found for this signature in database

View File

@ -326,7 +326,7 @@ jobs:
phase=$(kubectl get pods \
-l job-name=$NAMEPREFIX \
-n default \
-o jsonpath='{.items[0].status.phase}' 2>/dev/null)
-o jsonpath='{range .items[*]}{.status.phase}{end}' 2>/dev/null)
echo "Pod phase: ${phase:-not yet created}"
if [[ "$phase" == "Running" ]]; then break; fi
sleep 10