# Problem with installing rancher using HelmChart api object - comma problem

**URL:** <https://forums.suse.com/t/problem-with-installing-rancher-using-helmchart-api-object-comma-problem/20130>\
**Category:** k3s, k3OS, and k3d\
**Created:** [April 22, 2021, 11:15am UTC](https://forums.suse.com/t/problem-with-installing-rancher-using-helmchart-api-object-comma-problem/20130 "2021-04-22T11:15:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PiotrD](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@PiotrD](https://forums.suse.com/u/PiotrD)\
**Post date:** [April 22, 2021, 11:15am UTC](https://forums.suse.com/t/problem-with-installing-rancher-using-helmchart-api-object-comma-problem/20130/1 "2021-04-22T11:15:49Z")

</div>

Hi,  
I am trying to install Rancher 2 using following api object:

```auto
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
  creationTimestamp: "2021-04-22T09:47:03Z"
  finalizers:
  - wrangler.cattle.io/helm-controller
  generation: 3
  name: rancher
  namespace: kube-system
  resourceVersion: "2177"
  uid: bd42926e-355a-49d6-ab28-b15331067363
spec:
  chart: rancher
  repo: https://releases.rancher.com/server-charts/stable
  set:
    hostname: rancher-test.com
    http_proxy: http://example-wproxy.test.com:8080
    https_proxy: https://example-wproxy.test.com:8443
    ingress.tls.source: secret
    no_proxy: 127.0.0.0/8\\,10.0.1.0/8
  targetNamespace: cattle-system
status:
  jobName: helm-install-rancher

```

However, I have a problem with commas in no\_proxy variable. I am aware that I have to escape commas, but even if I add two \ helm-install fails.

```auto
helm_v3 install --namespace cattle-system --repo https://releases.rancher.com/server-charts/stable --set-string hostname=rancher-test.com --set-string http_proxy=http://example-wproxy.test.com:8080 --set-string https_proxy=https://example-wproxy.test.com:8443 --set-string ingress.tls.source=secret --set-string rancher rancher
Error: must either provide a name or specify --generate-name

```

From job logs it seems that no\_proxy part is missing, there is nothing atfer last --set-string

And when I don’t escape comma i get an error about it:

```auto
helm_v3 install --namespace cattle-system --repo https://releases.rancher.com/server-charts/stable --set-string hostname=rancher-test.com --set-string http_proxy=http://example-wproxy.test.com:8080 --set-string https_proxy=https://example-wproxy.test.com:8443 --set-string ingress.tls.source=secret --set-string no_proxy=127.0.0.0/8,10.0.1.0/8 rancher rancher

Error: failed parsing --set-string data: key map "10" has no value

```

I also tried adding a different amount of \ and other " and more more, unfortunately with no success.  
My k3s version is v1.20.4+k3s1

Is it even possible to add commas in variables of HelmChart object? and how to fix it ?

---

<div class="post-metadata">

**Author:** ![PiotrD](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@PiotrD](https://forums.suse.com/u/PiotrD)\
**Post date:** [April 23, 2021, 7:27am UTC](https://forums.suse.com/t/problem-with-installing-rancher-using-helmchart-api-object-comma-problem/20130/2 "2021-04-23T07:27:52Z")

</div>

or should I post a bug report here ? [GitHub - k3s-io/helm-controller](https://github.com/k3s-io/helm-controller)

---

<div class="post-metadata">

**Author:** ![PiotrD](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@PiotrD](https://forums.suse.com/u/PiotrD)\
**Post date:** [May 6, 2021, 9:20am UTC](https://forums.suse.com/t/problem-with-installing-rancher-using-helmchart-api-object-comma-problem/20130/3 "2021-05-06T09:20:13Z")

</div>

Ok, it was a bug, and it is already fixed.

> <https://github.com/k3s-io/helm-controller/issues/94>
>
> Hi,
> I am using k3s cluster version v1.20.4+k3s1 and I am trying to apply a ranc…her HelmChart using this controller. It works, however I have a problem when I try to use a comma value in set. I am aware that helm requires to escape a comma sign, but I guess somehow when helm-install starts, it does something weird to this setting.
> 
> My Helm chart object looks like this:
> 
> \`\`\`apiVersion: helm.cattle.io/v1
> kind: HelmChart
> metadata:
> creationTimestamp: "2021-04-22T09:47:03Z"
> finalizers:
> - wrangler.cattle.io/helm-controller
> generation: 3
> name: rancher
> namespace: kube-system
> resourceVersion: "2177"
> uid: bd42926e-355a-49d6-ab28-b15331067363
> spec:
> chart: rancher
> repo: https://releases.rancher.com/server-charts/stable
> set:
> hostname: rancher-test.com
> http\_proxy: http://example-wproxy.test.com:8080
> https\_proxy: https://example-wproxy.test.com:8443
> ingress.tls.source: secret
> no\_proxy: 127.0.0.0/8\\\\,10.0.1.0/8
> targetNamespace: cattle-system
> status:
> jobName: helm-install-rancher
> \`\`\`
> 
> and helm-install logs look like this:
> \`\`\`
> helm\_v3 install --namespace cattle-system --repo https://releases.rancher.com/server-charts/stable --set-string hostname=rancher-test.com --set-string http\_proxy=http://example-wproxy.test.com:8080 --set-string https\_proxy=https://example-wproxy.test.com:8443 --set-string ingress.tls.source=secret --set-string rancher rancher
> Error: must either provide a name or specify --generate-name
> \`\`\`
> 
> From job logs it seems that no\_proxy part is missing, there is nothing atfer last --set-string
> 
> And when I don’t escape comma i get an error about it:
> \`\`\`
> helm\_v3 install --namespace cattle-system --repo https://releases.rancher.com/server-charts/stable --set-string hostname=rancher-test.com --set-string http\_proxy=http://example-wproxy.test.com:8080 --set-string https\_proxy=https://example-wproxy.test.com:8443 --set-string ingress.tls.source=secret --set-string no\_proxy=127.0.0.0/8,10.0.1.0/8 rancher rancher
> 
> Error: failed parsing --set-string data: key map "10" has no value
> \`\`\`
> 
> I also tried adding a different amount of \\ and other " and more more, unfortunately with no success.
> 
> Is this a bug or is there maybe a workaround for this problem?

> <https://github.com/k3s-io/helm-controller/pull/95>
>
> For rancher/rke2#948
> 
> ~Will need to bump the job image before merging, after k…3s-io/klipper-helm#26 is merged and tagged~
