I have a list that has multiple fields per element, and I would need to concatenate it into a comma separated string that has fields foo and bar separated with a semicolon.
myList:
- foo: "asdf"
bar: "hnng"
- foo: "meh"
bar: "dunno"
For example, the above would need to be concatenated into "asdf;hnng,meh;dunno".
You could iterate through the list with range, but how would you then pass on that list to join? For example, the following should produce a list of strings, but how would I then pass it into join function?
{{- range .Values.myList }}
- {{.foo}};{{.bar}}
{{- end}
=>
- asdf;hnng
- meh;dunno