Helm-Charts provide a list as a parameter

9/2/2019

My custom Helm chart contains a variable which is taking strings list as a parameter,

values.yaml

myList: []

I need to pass the myList as a parameter,

helm upgrade --install myService  helm/my-service-helm  --set myList=[string1,string2]

Is there any possible way to do this?

-- JMadushan
kubernetes
kubernetes-helm

2 Answers

9/4/2019

In addition please take a look at escape characters:

--set foo={a\,b\,c}
-- Hanx
Source: StackOverflow

9/2/2019

Array values can be specified using curly braces: --set foo={a,b,c}.

From: https://github.com/helm/helm/issues/1987

-- volcanic
Source: StackOverflow