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 →
- Stop generating secrets in templates; provide the password via External Secrets or Sealed Secrets.
- If the chart supports
existingSecret, use it. - Short-term,
ignoreDifferenceson that Secret's data field withRespectIgnoreDifferences=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.
More on Sync Behaviour, Waves & Hooks
A new release needs a database migration that must finish before the new pods start. How do you implement it in Argo CD?IntermediateYour app needs cert-manager's CRDs, an Issuer and then a Certificate, all in one Application. The first sync fails. What do you do?IntermediateAfter enabling `prune: true`, someone renames a folder and the next sync would delete a production StatefulSet and its PVCs. How do you prevent this class of incident?AdvancedYou want a smoke test to run after every deploy and mark the sync failed if it fails. How?BeginnerAn HPA scales your Deployment, but Argo CD with self-heal keeps resetting replicas to 2. What do you do?BeginnerYou must change a Deployment's label selector, which is immutable. How do you roll it out with Argo CD?Advanced