Interview Prep/GitOps & Argo CD/Sync Behaviour, Waves & Hooks

Your Helm chart uses `randAlphaNum` to generate a password, and the app is always OutOfSync. What is your fix?

IntermediateScenarioSync Behaviour, Waves & Hooks
Answer

Situation read → helm template produces a new random value on every render.

What I'd do →

  1. Stop generating secrets in templates; provide the password via External Secrets or Sealed Secrets.
  2. If the chart supports existingSecret, use it.
  3. Short-term, ignoreDifferences on that Secret's data field with RespectIgnoreDifferences=true, accepting the risk.

Why → Argo CD cannot use Helm's lookup to reuse the existing value, so random values are always new.

Interview tip → Mention lookup not working as the root cause; it shows Helm-in-Argo knowledge.

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

More on Sync Behaviour, Waves & Hooks