Interview Prep/GitOps & Argo CD/Manifest Generation & ComparisonError

`rpc error: code = Unknown desc = `helm template . --name-template web --namespace web ... --include-crds` failed exit status 1: Error: template: web/templates/deployment.yaml:24:20: executing "web/templates/deployment.yaml" at <.Values.image.tag>: nil pointer evaluating interface {}.tag`

BeginnerTroubleshootingManifest Generation & ComparisonError
Answer

Likely causes → A values key is missing: the value file for this environment does not define image, or the value file path is wrong so it was never loaded.

Diagnose →

helm template web charts/web -f envs/prod/values.yaml --namespace web
argocd app get web -o yaml | yq '.spec.source.helm.valueFiles'

Fix → Add the missing values or default in the template ({{ .Values.image.tag | default .Chart.AppVersion }}), and fix the value file path.

Prevent → helm lint with each environment's values in CI; add values.schema.json to the chart.

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

More on Manifest Generation & ComparisonError