Argo CD shows an app permanently OutOfSync due to a field changed by an operator or HPA.
IntermediateScenarioDeployment Strategies and GitOps
Answer
Situation read → Controller-managed fields conflict with Git.
What I'd do →
- Identify the diff:
argocd app diff payments. - Add
ignoreDifferencesfor the field, for example/spec/replicaswhen an HPA scales. - Or remove
replicasfrom the manifest when using an HPA.
Why → Git should not own fields controlled by another controller.
Interview tip → ignoreDifferences with jsonPointers or jqPathExpressions.