mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-01 14:28:48 +02:00
1.2 KiB
1.2 KiB
Sync Options
No Prune Resources
v1.1
You may wish to prevent an object from being pruned:
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
In the UI, the pod will simply appear as out-of-sync:
The sync-status panel shows that pruning was skipped, and why:
The app will be out of sync if Argo CD expects a resource to be pruned. You may wish to use this along with compare options.
Disable Kubectl Validation
v1.2
For a certain class of objects, it is necessary to kubectl apply them using the --validate=false flag. Examples of this are kubernetes types which uses RawExtension, such as ServiceCatalog. You can do using this annotations:
metadata:
annotations:
argocd.argoproj.io/sync-options: Validate=false
If you want to exclude a whole class of objects globally, consider setting resource.customizations in system level configuation.

