What are sync options and give common examples?
Short answer
Sync options modify apply behavior, set via the Application or resource annotations.
Advertisement
AModel answer
Sync options modify apply behavior, set via the Application or resource annotations. Common ones: Prune=false (don't delete), Validate=false (skip schema validation), CreateNamespace=true (auto-create target namespace), ApplyOutOfSyncOnly=true (only apply changed resources), ServerSideApply=true, and Replace=true (use replace instead of apply).
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=trueReal-world example
CreateNamespace=true lets an app provision its own namespace on first sync without a separate manifest.
Likely follow-ups
- What does ServerSideApply solve? | When use Replace=true?
Related topics