Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bruceherve/62474b37e5a136c1b202ad5da5861cfe to your computer and use it in GitHub Desktop.
Save bruceherve/62474b37e5a136c1b202ad5da5861cfe to your computer and use it in GitHub Desktop.
for app in $(kubectl get applications --output=jsonpath={.items..metadata.name}); do \
echo $app &&\
kubectl patch app $app --type json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'; \
kubectl delete $app; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment