A MutatingWebhookConfiguration is always OutOfSync on `webhooks[0].clientConfig.caBundle`.
IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer
Likely causes → cert-manager's CA injector or the operator itself writes caBundle after Argo CD applies an empty or stale value.
Diagnose → argocd app diff <app> shows caBundle changes only; kubectl get mutatingwebhookconfiguration <name> -o yaml shows the cert-manager.io/inject-ca-from annotation.
Fix →
ignoreDifferences:
- group: admissionregistration.k8s.io
kind: MutatingWebhookConfiguration
jqPathExpressions:
- '.webhooks[]?.clientConfig.caBundle'
Add RespectIgnoreDifferences=true.
Prevent → Put it in resource.customizations.ignoreDifferences globally for webhook configurations, since every injected webhook behaves this way.
More on OutOfSync Loops & Diff Problems
An app flips between `Synced` and `OutOfSync` every few seconds and the sync history grows constantly.Intermediate`argocd app diff` shows only `replicas: 2` vs `replicas: 5` on a Deployment that has an HPA, and the app never stays Synced.BeginnerAfter installing Istio, every Deployment shows OutOfSync because of injected sidecar fields.IntermediateA ConfigMap is OutOfSync and the diff shows the same data in a different format (a number became a string).BeginnerA Deployment is OutOfSync on `resources.limits.cpu`: Git says `1000m`, live says `1`.IntermediateAn app is OutOfSync on a field that is not in Git at all, after an Argo CD upgrade.Advanced