Interview Prep/Helm/Hooks, Tests, GitOps & Secrets

Argo CD Application shows `ComparisonError: ... failed to execute helm template command: ... Error: execution error at (shop/templates/secret.yaml:9:15): postgres.auth.password is required`

AdvancedTroubleshootingHooks, Tests, GitOps & Secrets
Answer

Likely causes → Argo CD renders without your secrets file: helm-secrets is not configured in the repo server, or the values file path is wrong in valueFiles.

Diagnose → argocd app manifests shop-prod --source live and the Application's spec.source.helm.valueFiles.

Fix → Use existingSecret with an ExternalSecret (preferred), or configure the helm-secrets integration in the Argo CD repo server (SOPS keys provided via IRSA/KMS) and reference secrets:// value files.

Prevent → Keep secrets out of Helm values in GitOps setups.

All Helm questions Roadmap: Helm

More on Hooks, Tests, GitOps & Secrets