From d6bccef2b5aa52bc9a6f7acef4a96eb732b4f98a Mon Sep 17 00:00:00 2001 From: Patrick Lucas Date: Thu, 6 Jul 2017 01:01:48 +0200 Subject: [PATCH] Fix influxdb deployment (#1424) * Fix influxdb deployment Previously, setting `config.graphite.enabled` (or other such parameters) to `true` resulted in a yaml syntax error because the content within the `{{- if` block would be appended to the previous line due to the hyphen. * Update Chart.yaml --- stable/influxdb/Chart.yaml | 2 +- stable/influxdb/templates/deployment.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stable/influxdb/Chart.yaml b/stable/influxdb/Chart.yaml index 54adffd88075..5a5b798cca47 100755 --- a/stable/influxdb/Chart.yaml +++ b/stable/influxdb/Chart.yaml @@ -1,5 +1,5 @@ name: influxdb -version: 0.4.1 +version: 0.4.2 description: Scalable datastore for metrics, events, and real-time analytics. keywords: - influxdb diff --git a/stable/influxdb/templates/deployment.yaml b/stable/influxdb/templates/deployment.yaml index 25d760f89f78..fdfa2d3fbc8b 100644 --- a/stable/influxdb/templates/deployment.yaml +++ b/stable/influxdb/templates/deployment.yaml @@ -23,23 +23,23 @@ spec: ports: - name: api containerPort: {{ .Values.config.http.bind_address }} - {{- if .Values.config.admin.enabled -}} + {{ if .Values.config.admin.enabled -}} - name: admin containerPort: {{ .Values.config.admin.bind_address }} {{- end }} - {{- if .Values.config.graphite.enabled -}} + {{ if .Values.config.graphite.enabled -}} - name: graphite containerPort: {{ .Values.config.graphite.bind_address }} {{- end }} - {{- if .Values.config.collectd.enabled -}} + {{ if .Values.config.collectd.enabled -}} - name: collectd containerPort: {{ .Values.config.collectd.bind_address }} {{- end }} - {{- if .Values.config.udp.enabled -}} + {{ if .Values.config.udp.enabled -}} - name: udp containerPort: {{ .Values.config.udp.bind_address }} {{- end }} - {{- if .Values.config.opentsdb.enabled -}} + {{ if .Values.config.opentsdb.enabled -}} - name: opentsdb containerPort: {{ .Values.config.opentsdb.bind_address }} {{- end }}