`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.
More on Manifest Generation & ComparisonError
`ComparisonError: Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): ...`Intermediate`Error: open envs/prod/values.yaml: no such file or directory` when the app renders.Beginner`Error: values file '../../envs/prod/values.yaml' resolved to outside repository root`IntermediateKustomize app fails: `kustomize build ... failed exit status 1: Error: accumulating resources: accumulation err='accumulating resources from '../../base': ... must build at directory: not a valid directory'`.Beginner`Error: trouble configuring builtin HelmChartInflationGenerator with config: ... must specify --enable-helm`Intermediate`rpc error: code = DeadlineExceeded desc = context deadline exceeded` on several apps' comparison.Advanced