Interview Prep/Helm/Values, Schema & Type Errors

A feature turned on in prod although the prod file says `enabled: "false"`.

IntermediateTroubleshootingValues, Schema & Type Errors
Answer

Likely causes → The quoted string "false" is non-empty and therefore truthy in if.

Diagnose → helm get values shop --all -o json | jq '.feature.enabled | type' returns "string".

Fix → Use an unquoted boolean enabled: false.

Prevent → Schema "type": "boolean".

All Helm questions Roadmap: Helm

More on Values, Schema & Type Errors