A Secret generated by a Helm chart (`genCA`/`randAlphaNum`) shows OutOfSync after every refresh.
IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer
Likely causes → Argo CD runs helm template on each render, so random or generated values change each time, and lookup (which charts use to reuse existing values) returns nothing.
Diagnose → argocd app diff shows the Secret's data changing; the chart template contains randAlphaNum, genCA or lookup.
Fix → Supply the value via existingSecret (Sealed Secrets or ESO), or set the value explicitly in values. Short-term: ignoreDifferences on /data for that Secret plus RespectIgnoreDifferences=true.
Prevent → Prefer charts that support existingSecret; check for lookup before adopting a chart.
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.BeginnerA MutatingWebhookConfiguration is always OutOfSync on `webhooks[0].clientConfig.caBundle`.IntermediateAfter 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`.Intermediate