`--set podAnnotations.prometheus.io/scrape=true` creates nested keys instead of one annotation.
IntermediateTroubleshootingValues, Schema & Type Errors
Answer
Likely causes → Dots in keys are path separators in --set.
Diagnose → helm get values shop -o yaml shows prometheus: {io/scrape: "true"}.
Fix → Escape the dots: --set-string 'podAnnotations.prometheus\.io/scrape=true', or use a values file.
Prevent → Annotations and labels belong in values files.
More on Values, Schema & Type Errors
`Error: values don't meet the specifications of the schema(s) in the following chart(s): shop: - api.replicaCount: Invalid type. Expected: integer, given: string`Beginner`Error: values don't meet the specifications of the schema(s) in the following chart(s): shop: - (root): Additional property replicacount is not allowed`Beginner`Error: values don't meet the specifications of the schema(s) in the following chart(s): shop-postgres: - auth: password is required` but you did set `postgres.auth.password`.Advanced`Error: failed parsing --set data: key "b.example.com" has no value`Beginner`Error: failed to parse values-prod.yaml: error converting YAML to JSON: yaml: line 12: found character that cannot start any token`Beginner`coalesce.go:286: warning: cannot overwrite table with non table for shop.api.resources (map[limits:map[memory:256Mi]])`Intermediate