Fix joinListWithComma rendering when invoked with CLI values
This PS fises a rendering erros in the joinListWithComma function when used with values from the helm --set cli command. From Kolla-Kubernetes: https://review.openstack.org/#/c/488513/ All Credit to: Serguei Bezverkhi Change-Id: I013a37f5e6dec43232c6ee300be8f918f9ef554a
This commit is contained in:
parent
f84716f43e
commit
04e05fcea4
@ -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 -}}
|
||||
|
Loading…
Reference in New Issue
Block a user