mirror of
https://github.com/optim-enterprises-bv/openstack-helm.git
synced 2026-01-04 22:11:39 +00:00
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
19 lines
818 B
Smarty
19 lines
818 B
Smarty
# Copyright 2017 The Openstack-Helm Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
{{- define "helm-toolkit.utils.joinListWithComma" -}}
|
|
{{- $local := dict "first" true -}}
|
|
{{- range $k, $v := . -}}{{- if not $local.first -}},{{- end -}}{{- $v -}}{{- $_ := set $local "first" false -}}{{- end -}}
|
|
{{- end -}}
|