Skip to content
Snippets Groups Projects
Commit dbbef32c authored by Martin's avatar Martin
Browse files

comment out patch due to permission issue

parent ed66b69c
No related branches found
No related tags found
No related merge requests found
......@@ -645,9 +645,10 @@ Void waitForDeletion(String bezeichner) {
sh "kubectl wait --for=delete applications/by-${bezeichner}-dev-application -n argocd --timeout=120s"
} catch (Exception e) {
try {
sh """
kubectl patch applications.argoproj.io by-${bezeichner}-dev-application -n argocd --type=json -p '[{"op": "remove", "path": "/metadata/finalizers"}]'
"""
//TODO ClusterRole + Role for Permission
//sh """
//kubectl patch applications.argoproj.io by-${bezeichner}-dev-application -n argocd --type=json -p '[{"op": "remove", "path": "/metadata/finalizers"}]'
//"""
sh "kubectl wait --for=delete applications/by-${bezeichner}-dev-application -n argocd --timeout=120s"
} catch (Exception e2) {
error("Application by-${bezeichner}-dev-application konnte nicht gelöscht werden")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment