Helm: fix “json: cannot unmarshal bool into Go struct field ConfigMap.data of type string”
Jun 13, 2023
tl;dr:
Try with --set-string
instead of--set
Full explanation
If helm (version 3.7 and 3.8) upgrade command fails with the message above when setting boolean variables via --set my.variable=”true"
, the solutions seems to be either
- quote
--set my.variable=\"true\"
. this was mentioned here but doesn’t look a great solution when using bash scripts to run command - use
--set-string my.variable="true"