local-path-provisioner icon indicating copy to clipboard operation
local-path-provisioner copied to clipboard

how to set nodePathMap

Open vivianforzj opened this issue 4 years ago • 3 comments

I tried:

helm install local-path-storage ./deploy/chart --set nodePathMap="[{node:DEFAULT_PATH_FOR_NON_LISTED_NODES,paths:[/data]}]" 

and got the error:

Error: failed parsing --set data: error parsing index: strconv.Atoi: parsing "/data": invalid syntax

So, how can I set nodePathMap? Thanks for any help

vivianforzj avatar Jun 24 '20 07:06 vivianforzj

It's kind of annoying escaping json to be accepted with Helm --set. You will make yourself a favor by copying the values.yaml file, make the modification where you need and helm install ... -f yourvalues.yaml

frederiko avatar Aug 06 '20 18:08 frederiko

How about helm install local-path-storage ./deploy/chart --set nodePathMap[0].node=DEFAULT_PATH_FOR_NON_LISTED_NODES --set nodePathMap[0].paths[0]=/data?

grapemix avatar Dec 26 '21 20:12 grapemix