Skip to content

Instantly share code, notes, and snippets.

@guilhermelinhares
Created January 19, 2024 15:57
Show Gist options
  • Save guilhermelinhares/6d986f7c57ed178bc84daa7332c0dee5 to your computer and use it in GitHub Desktop.
Save guilhermelinhares/6d986f7c57ed178bc84daa7332c0dee5 to your computer and use it in GitHub Desktop.
Frozen namespace terminating..
kubectl get namespace "$NAMESPACE_NAME" -o json \
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
| kubectl replace --raw /api/v1/namespaces/$NAMESPACE_NAME/finalize -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment