mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
helm: csiplugin-configmap generates invalid configuation
When generating csiconfiguration from values the config.json key gets merged with cluster-mapping.json as the config.json toYaml element supresses a newline. This fixes the situation where configuration is generated as shown; ``` data: config.json: |- [{"clusterID":"....","monitors":["..."]}]cluster-mapping.json: |- [] ``` Signed-off-by: Toby Jackson <toby@warmfusion.co.uk>
This commit is contained in:
parent
7f13bf6c4d
commit
989905aa9f
@ -12,7 +12,7 @@ metadata:
|
||||
heritage: {{ .Release.Service }}
|
||||
data:
|
||||
config.json: |-
|
||||
{{ toJson .Values.csiConfig | indent 4 -}}
|
||||
{{ toJson .Values.csiConfig | indent 4 }}
|
||||
cluster-mapping.json: |-
|
||||
{{ toJson .Values.csiMapping | indent 4 -}}
|
||||
{{ toJson .Values.csiMapping | indent 4 }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user