pulsar-resources-operator icon indicating copy to clipboard operation
pulsar-resources-operator copied to clipboard

argocd app delete is stuck with 'CleanUpAfterDeletion' enabled

Open mingmcb opened this issue 2 years ago • 4 comments

when use argocd deploy the helm chart, we're not be able to delete the app when 'CleanUpAfterDeletion' enabled.

the work around is to set the the argocd finalizers to use resources-finalizer.argocd.argoproj.io/background.

Please take a look.

mingmcb avatar Sep 28 '23 19:09 mingmcb

@mingmcb Can you share the manifests from the helm chart?

ericsyh avatar Oct 07 '23 02:10 ericsyh

I guess this is caused by https://github.com/streamnative/pulsar-resources-operator/issues/69 For now, resource operator is using an all-in-one controller, and also the topic, namespace currently has no dependency management https://github.com/streamnative/pulsar-resources-operator/issues/130 which usually cause resource blocked during the deleting phase.

ericsyh avatar Oct 07 '23 03:10 ericsyh

yes, it is possible. You can test it out by creating a helm charts with CleanUpAfterDeletion enabled. A sample argocd app as shown below can be used for testing, the app will be in stuck if you try to delete. apiVersion: "argoproj.io/v1alpha1" kind: "Application" metadata: finalizers: - "resources-finalizer.argocd.argoproj.io" name: "pulsar-resources-test" spec: project: applications source: repoURL: 'https://chartrepo' targetRevision: x.x.x chart: test-chart destination: namespace: ns-1 name: cluster-1

mingmcb avatar Oct 09 '23 23:10 mingmcb

In our case we are working around this issue by using argocd sync-waves to ensure deletion in a specific order

tomjo avatar Jan 24 '24 09:01 tomjo