Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set map from Helm install command

I have the following chart:

deployment:
  envVars:
    - name: FIRST
      value: first
    - name: SECOND
      value: second

I would like to append an extra name/value pair to the chart via the --set command in Helm. The documentation at https://github.com/helm/helm/blob/master/docs/using_helm.md#the-format-and-limitations-of---set doesn't seem to help me.

I've tried to pass --set deployment.envVars[0].name=APPEND,deployment.envVars[0].value=yes but it says no matches found.

Using Helm 2.10.

Any suggestion?

like image 230
supercalifragilistichespirali Avatar asked Jul 14 '19 22:07

supercalifragilistichespirali


1 Answers

Try escape square brackets [] with backslash \ in your command, like this --set deployment.envVars\[0\].name=APPEND,deployment.envVars\[0\].value=yes.

like image 173
jhisse Avatar answered Jan 02 '23 09:01

jhisse