suxess-it / sx-cnp-oss

1 stars 0 forks source link

Document and test procedure to shut down cluster fast #256

Open jkleinlercher opened 2 weeks ago

jkleinlercher commented 2 weeks ago

Maybe this works:

jkleinlercher commented 6 days 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