Interview Prep/GitOps & Argo CD/Sync Waves, Hooks, Health & Diffing

Why do you need `RespectIgnoreDifferences=true` in addition to `ignoreDifferences`?

IntermediateConceptSync Waves, Hooks, Health & Diffing
Answer

ignoreDifferences only affects the comparison. When a sync happens for any other reason, Argo CD still applies the full desired manifest, overwriting the ignored field (for example resetting replicas the HPA scaled up). RespectIgnoreDifferences=true makes the sync patch the desired object with live values for ignored fields before applying, so those fields are left alone. It applies to resources that already exist; on creation the desired value is used.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Sync Waves, Hooks, Health & Diffing