diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2019-07-19 14:45:24 +0800 |
---|---|---|
committer | Lianhao Lu <lianhao.lu@intel.com> | 2019-07-19 14:46:28 +0800 |
commit | 779fd6928d724de3731d36f92af04e904ed25693 (patch) | |
tree | 9c94bdd92bd0c853d1b87f41de2638933b8e6506 /vnfs/DAaaS/deploy/visualization/charts/grafana | |
parent | d372a21027f5ade64e2c28037c1deab053b5e36e (diff) |
DAaaS: Fixing dashborad provisioning
Fixed the multiline indicator usage that breaks the provisioning grafana
dashboards from local file.
Change-Id: If97f06119b10dad70eea74f68b180280978ad1c7
Issue-ID: ONAPARC-393
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'vnfs/DAaaS/deploy/visualization/charts/grafana')
-rwxr-xr-x | vnfs/DAaaS/deploy/visualization/charts/grafana/templates/dashboards-json-configmap.yaml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/dashboards-json-configmap.yaml b/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/dashboards-json-configmap.yaml index bd46addc..567da7f8 100755 --- a/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/dashboards-json-configmap.yaml +++ b/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/dashboards-json-configmap.yaml @@ -15,9 +15,10 @@ metadata: data: {{- range $key, $value := $dashboards }} {{- if (or (hasKey $value "json") (hasKey $value "file")) }} -{{ print $key | indent 2 }}.json: |- +{{ print $key | indent 2 }}.json: {{- if hasKey $value "json" }} -{{ $value.json | indent 4 }} + |- +{{ $value.json | indent 6 }} {{- end }} {{- if hasKey $value "file" }} {{ toYaml ( $files.Get $value.file ) | indent 4}} |