Mechanics of application deletion without deleting k8s resources #8125
Replies: 3 comments 2 replies
-
Hi @igorpalant, I believe there is no way to prevent a user that is using the UI from accidentally deleting the Application child resources, with the exception of preventing them from deleting using RBAC. RE: moving Argo CD to another cluster, I don't think we have documented an official way of doing thing, but my expectation is that the second Argo CD should automatically adopt the resources of the first Argo CD on the target k8s cluster, presuming that both Argo CD instances are setup in the same way. |
Beta Was this translation helpful? Give feedback.
-
Hi. any updates? |
Beta Was this translation helpful? Give feedback.
-
We have written a full guide here https://codefresh.io/blog/argocd-application-deletion-finalizers/ Check "Use case 4 – Moving or renaming an Argo CD application" section in the article. Although i think you will find the whole content interesting. |
Beta Was this translation helpful? Give feedback.
-
I have read documentation about resources-finalizer, but still a little confuse about mechanics of it. I am on version 1.8.6. My goal is to protect some of our services that are provisioned using Argo from removal if someone accidently removes application from Argo UI.
https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/application.yaml
#Add a this finalizer ONLY if you want these to cascade delete.
finalizers:
- resources-finalizer.argocd.argoproj.io
Our current application specs do not have this entry and on application deletion in UI, k8s resources are deleted. I would like to avoid it, but not sure I understand underlying mechanics. Thanks!
Another question that I have about moving ArgoCD to another k8s cluster. I have Argo deployment that manages ~100 applications in various clusters. If I want to move ArgoCD to a different k8s cluster without disturbing deployed application - what should I do. Again, it comes from me missing understanding in underlying mechanics. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions