Interview Prep/GitOps & Argo CD/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): ...`

IntermediateTroubleshootingManifest Generation & ComparisonError
Answer

Likely causes → Rendering failed (Helm or Kustomize error) and the repo-server cached the failure; it returns the cached error until the cache expires or something changes.

Diagnose → Read the rest of the message for the real error; reproduce locally with helm template or kustomize build at the same commit; check kubectl -n argocd logs deploy/argocd-repo-server.

Fix → Fix the manifests and push, then argocd app get web --hard-refresh to bypass the cached error.

Prevent → Render every app in CI on PRs to the config repo.

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

More on Manifest Generation & ComparisonError