Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # run a bash function with the timeout command
- ```
- function my_function {
- until kubectl get -n kube-system deploy/my_dep ; do
- echo "Wait my_dep deployment ..."
- sleep 5
- done
- # Do someting
- }
- export -f my_function
- timeout 20s bash -c my_function
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement