Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. tryCount=0
  2. runningPod=""
  3.  
  4. while [ "$runningPod" == "" ] && [ $tryCount -lt 12 ]
  5. do
  6. tryCount=$((tryCount + 1))
  7. echo "Searching for pod... try $tryCount of 12"
  8. sleep 5
  9. runningPod="$(kubectl get pods --selector=job-name=$jobName --output=jsonpath={.items..metadata.name})"
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement