After `helm upgrade` with a new values file, settings from the previous deploy disappeared.
IntermediateTroubleshootingValues, Schema & Type Errors
Answer
Likely causes → When any -f or --set is given, Helm does not reuse previous values; the prior deploy used extra --set flags or a file not passed this time.
Diagnose →
helm get values shop -n shop --revision <previous>
helm get values shop -n shop
Fix → Pass all required values files every time; move ad-hoc flags into files.
Prevent → Deploy only from CI with values in Git.
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