ApplicationSet syncPolicy setting is not working #12986
-
I am use ApplicationSet to autocreate app, and the under is my syncPolicy, I have setting prune: false and selfHeal: false but it not work, when I change rescoure in living cluster by manual It also selfHeal ,I want stop selfHeal is anyone can help me?thanks
I have read doc from auto-sync https://argo-cd.readthedocs.io/en/stable/user-guide/auto_sync/ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
the docs: By default (and as a safety mechanism), automated sync will not delete resources when Argo CD detects the resource is no longer defined in Git the docs: By default, changes that are made to the live cluster will not trigger automated sync. ApplicationSet setting:
version: |
Beta Was this translation helpful? Give feedback.
-
Hi @helloworld113, as per our docs here:
if you are using applicationSet you might want to edit the applicationSet However, in upcoming 2.7 release there will be this feature that will allow you to configure annotations that are preserved by the AppSet. Please see the unreleased 2.7 documentation on this for how it will work. If this answer satisfies your use case, please go ahead and close the discussion :) Thanks! |
Beta Was this translation helpful? Give feedback.
Hopefully I'm understanding your issue correctly (and I apologize if I'm not)... could you try setting
.syncPolicy.preserveResourcesOnDeletion
totrue
in the ApplicationSet? I'm looking at this in the docs and wondering if that's the issue you're facing https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Application-Deletion/