Search code examples
kubernetes-helmhelm3

helm CLI incorrectly splits on commas


When using the helm command and overriding values using --set, if the key value contains a comma, the value is halted there. i want to pass a value with comma.

For example -set connString=service_name:8080,password=xxxxx=,abortConnect=False

and in my helm I'm using this connection string.

connString: ""

Cons__cache: "{{ .Values.connString}}"

But service_name:8080 is stored.


Solution

  • You can try this:

    --set connString='service_name:8080\,password=xxxxx=\,abortConnect=False'
    

    or

    --set connString=service_name:8080\,password=xxxxx=\,abortConnect=False
    

    Link references:
    enter image description here https://helm.sh/docs/intro/using_helm/
    https://github.com/helm/helm/issues/1556