Merge "Fix joinListWithComma rendering when invoked with CLI values"

This commit is contained in:
Jenkins 2017-08-02 20:26:55 +00:00 committed by Gerrit Code Review
commit 268d8ef471

View File

@ -13,5 +13,6 @@
# limitations under the License.
{{- define "helm-toolkit.utils.joinListWithComma" -}}
{{ range $k, $v := . }}{{ if $k }},{{ end }}{{ $v }}{{ end }}
{{- $local := dict "first" true -}}
{{- range $k, $v := . -}}{{- if not $local.first -}},{{- end -}}{{- $v -}}{{- $_ := set $local "first" false -}}{{- end -}}
{{- end -}}