Skip to content

Instantly share code, notes, and snippets.

@MrHassanMurtaza
Created July 1, 2022 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrHassanMurtaza/a1c0b4af2c9a8922acd191a6735e0566 to your computer and use it in GitHub Desktop.
Save MrHassanMurtaza/a1c0b4af2c9a8922acd191a6735e0566 to your computer and use it in GitHub Desktop.
Check if resources got created in kubernetes
#!/bin/bash
while : ; do
kubectl get [your thing] && break
sleep 1
done
@MrHassanMurtaza
Copy link
Author

Or one line:

while ! kubectl get [your thing]; do sleep 1; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment