`Error: rendered manifests contain a resource that already exists. Unable to continue with install: ConfigMap "shop-config" in namespace "shop" exists and cannot be imported into the current release ...` but the ConfigMap is defined twice in your own chart.
IntermediateTroubleshootingTemplating & Rendering Errors
Answer
Likely causes → Two templates (or a parent and a subchart) render an object with the same kind and name, so the second conflicts with the first within one install. Often from a hardcoded name in a subchart or a copied template.
Diagnose →
helm template shop ./shop | yq -N '[.kind, .metadata.name] | join("/")' | sort | uniq -d
Fix → Give each object a unique name via the fullname helper with a component suffix.
Prevent → A CI check for duplicate kind/name pairs in rendered output.
More on Templating & Rendering Errors
`Error: template: shop/templates/api-deployment.yaml:24:28: executing "shop/templates/api-deployment.yaml" at <.Values.api.image.tag>: nil pointer evaluating interface {}.tag`Beginner`Error: YAML parse error on shop/templates/api-deployment.yaml: error converting YAML to JSON: yaml: line 31: did not find expected key`Beginner`Error: YAML parse error on shop/templates/configmap.yaml: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context`Intermediate`Error: template: shop/templates/api-deployment.yaml:18:12: executing "..." at <include "shop.labels" .>: error calling include: template: no template "shop.labels" associated with template "gotpl"`Beginner`Error: template: shop/templates/_helpers.tpl:14:14: executing "shop.fullname" at <.Chart.Name>: can't evaluate field Chart in type string`Intermediate`Error: parse error at (shop/templates/api-deployment.yaml:40): function "toYml" not defined`Beginner