Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tryCount=0
- runningPod=""
- while [ "$runningPod" == "" ] && [ $tryCount -lt 12 ]
- do
- tryCount=$((tryCount + 1))
- echo "Searching for pod... try $tryCount of 12"
- sleep 5
- runningPod="$(kubectl get pods --selector=job-name=$jobName --output=jsonpath={.items..metadata.name})"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement