CICD-295 · Argo CD synchronization policies
Encyclopedia · Advanced GitOps and progressive delivery · All snippets
Previous · CICD-294 · Next · CICD-296
1. Where it fits
- Placement gitops/application.yaml spec fragment.
- Prerequisites trusted configuration repository, test cluster and named GitOps controller or rollout controller.
- Platforms kubernetes, local-lab.
2. Copy the snippet
yaml
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true3. How it works
Automated sync reconciles the selected Git revision and self-heal repairs drift. prune false leaves deletion as a separate reviewed decision.
4. Verify the result
Confirm ownership and reconciliation rules before enabling automated sync. Set prune explicitly when deletes are approved.
Validation syntax-validated (YAML parse). Status definitions.