Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Fix influxdb deployment (#1424)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
patricklucas authored and Vic Iglesias committed Jul 5, 2017
1 parent 147a378 commit d6bccef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stable/influxdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions stable/influxdb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d6bccef

Please sign in to comment.