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

`ComparisonError: ... error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}`

IntermediateTroubleshootingManifest Generation & ComparisonError
Answer

Likely causes → A rendered file contains something that is not a Kubernetes object: a stray YAML document with only a string, a values file inside the manifests path, a README in YAML, or broken indentation.

Diagnose → argocd app manifests web --source git or local render; look for documents without apiVersion/kind.

Fix → Remove non-manifest YAML from the path, or exclude it with directory.exclude, or fix the template output.

Prevent → kubeconform in CI rejects non-object documents.

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

More on Manifest Generation & ComparisonError