Tune an Argo CD sync with Application syncOptions and resource annotations
Answer: Sync options change how Argo CD applies and prunes resources. Most of the Sync Options are configured in the Application resource. Some options can also be defined as annotations on a specific resource.
Application-level options
Set prune confirmation, apply-out-of-sync-only behavior, and similar flags on the Application. You can set the Prune=confirm sync option to require manual confirmation before pruning.
| resource annotations | Prune=confirm | |---|---| | resource annotations | options for one object | | resource annotations | options for one object | | Prune=confirm | manual confirmation before prune | | compare options | often used alongside sync options |
Resource annotations
When only one object needs a special apply or prune policy, put the annotation on that object instead of changing the whole Application.
See also
Claims
- id: C1 claim: Some sync options can be set as annotations on one resource. source: S2 evidence: "Some Sync Options can be defined as annotations in a specific resource."
- id: C2 claim: Most sync options live on spec.syncPolicy.syncOptions. source: S1 evidence: "Most of the Sync Options are configured in the Application resource spec.syncPolicy.syncOptions attribute."
- id: C3 claim: Prune=confirm requires manual confirmation before pruning. source: S1 evidence: "You can set the Prune=confirm sync option to require manual confirmation before pruning."
Sources
- [S1] Sync Options. Argo CD. https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/ . License: Apache-2.0. Accessed 2026-11-20.
- [S2] sync-options.md. argoproj/argo-cd. https://raw.githubusercontent.com/argoproj/argo-cd/master/docs/user-guide/sync-options.md . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Argo CD, Sync Options; argoproj/argo-cd, sync-options.md. Apache-2.0; Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Argo CD, Sync Options; argoproj/argo-cd, sync-options.md. Apache-2.0; Apache-2.0.
Cite this
iinventedlight. 2026. "Tune an Argo CD sync with Application syncOptions and resource annotations." iinventedlight Library, iil:note:npmwq2xs, version of 2026-11-20. https://iinventedlight.com/library/notes/argocd-sync-options/. License: CC-BY-4.0.
@misc{iil_note_npmwq2xs,
author = {{iinventedlight}},
title = {{Tune an Argo CD sync with Application syncOptions and resource annotations}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/argocd-sync-options/},
note = {Permanent ID iil:note:npmwq2xs. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- argocd-sync-options.table.json (table; CC-BY-4.0)
- argocd-sync-options.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/argocd-sync-options.md.