Skip to content

Commit bba8d1e

Browse files
committed
post cleanup and uninstall now works
1 parent ccd55da commit bba8d1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • charts/orchestrator-software-templates-infra/templates/openshift-gitops

charts/orchestrator-software-templates-infra/templates/openshift-gitops/post-cleanup.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ metadata:
1919
rules:
2020
- apiGroups: ["operators.coreos.com"]
2121
resources: ["clusterserviceversions", "subscriptions"]
22-
verbs: ["get", "list", "delete", "watch"]
22+
verbs: ["get", "list", "delete", "watch", "patch", "update"]
2323
- apiGroups: ["argoproj.io"]
2424
resources: ["argocds", "applications", "appprojects"]
25-
verbs: ["get", "list", "delete", "watch"]
25+
verbs: ["get", "list", "delete", "watch", "patch", "update"]
2626
- apiGroups: [""]
2727
resources: ["pods"]
2828
verbs: ["get", "list"]
@@ -112,7 +112,7 @@ spec:
112112
echo " ArgoCD $name stuck, removing finalizers..."
113113
114114
# Remove finalizers using JSON patch
115-
kubectl patch argocd $name -n $ns --type='json' -p='[{"op": "remove", "path": "/metadata/finalizers"}]' 2>/dev/null || true
115+
kubectl patch argocd $name -n $ns --type='merge' -p '{"metadata":{"finalizers":[]}}' || true
116116
117117
# Force delete
118118
kubectl delete argocd $name -n $ns --force --grace-period=0 2>/dev/null || true

0 commit comments

Comments
 (0)