Helm: fix “json: cannot unmarshal bool into Go struct field ConfigMap.data of type string”

Elvis Ciotti
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"

--

--

Elvis Ciotti
Elvis Ciotti

Written by Elvis Ciotti

Software Contractor — Java, Spring, k8s, AWS, Javascript @ London - hire me at https://elvisciotti.github.io/

No responses yet