#8686·argo-cd

Allow to define prune by default for manual sync applications

Author: gaeljwCreated Mar 4, 2022Updated Sep 30, 2026
Labelsenhancementmore-information-needed

Summary

For applications not defined with automated sync, I'd still like to define (declaratively in the YAML) that the manual sync should use pruning.

Currently pruning implies automated sync:

spec:
  syncPolicy:
    automated:
      prune: true

Motivation

I have applications on which I don't want to enable automated sync for safety but still not have to check "prune" option each time a manual sync is done.

Proposal

prune option could be moved outside of automated.

Not sure of the best way to not do a breaking change though.