When would you use `ServerSideApply=true`?
IntermediateConceptThe Application CRD & Sync Policies
Answer
- Large objects (big CRDs, dashboards in ConfigMaps) that fail client-side apply with
metadata.annotations: Too long: must have at most 262144 bytes, because client-side apply stores the full object inlast-applied-configuration. - When several managers own different fields of one object and you want proper field ownership instead of overwriting.
- Patching resources partially (with
ServerSideApplyyou can apply just the fields you declare to an object created elsewhere).
It can be set per app (syncOptions) or per resource (annotation).
More on The Application CRD & Sync Policies
Walk through the key fields of an Argo CD `Application`.BeginnerWhat values can `targetRevision` take?BeginnerWhat is the difference between `destination.server` and `destination.name`?BeginnerWhat does `syncPolicy.automated` do, and what are its sub-fields?BeginnerWhy is `prune` disabled by default?BeginnerExplain `selfHeal`. When might you not want it?Intermediate