Skip to content

Instantly share code, notes, and snippets.

@Oats87
Created February 18, 2020 21:49
Show Gist options
  • Save Oats87/ef581310361cdc328dbaa4c1c8913980 to your computer and use it in GitHub Desktop.
Save Oats87/ef581310361cdc328dbaa4c1c8913980 to your computer and use it in GitHub Desktop.
delete states
for i in $(kubectl get state -n hobbyfarm | awk '{print $1}' | grep -v "NAME"); do kubectl -n hobbyfarm patch state $i -p '{"metadata":{"finalizers": []}}' --type=merge; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment