Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ronaldpetty/2819abb38149fa59856f460cd894e9e3 to your computer and use it in GitHub Desktop.
Save ronaldpetty/2819abb38149fa59856f460cd894e9e3 to your computer and use it in GitHub Desktop.
...
- initcontainers
- name: blocker
- command:
- sh
- -x
- -c
- |
broken = true
till_not_broken broken:
if [ -x dir ]:
broken = false
else after 10 times:
print(broken still)
give up go home
sleep 1
- containers
- name: non-blocker
# similar logic as above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment