suxess-it / kubriX

https://kubrix.io
18 stars 3 forks source link

Document and test procedure to shut down cluster fast #256

Open jkleinlercher opened 5 months ago

jkleinlercher commented 5 months ago

Maybe this works:

jkleinlercher commented 4 months ago

a oneliner in case argocd project is deleted before the apps. this oneliner deletes all finalizers of all apps:

for app in $( kubectl get applications -n argocd --no-headers -o custom-columns=":metadata.name" ) ; do kubectl patch application $app -n argocd --type json --patc
h='[ { "op": "remove", "path": "/metadata/finalizers" } ]'  ; done