Skip to content

Commit

Permalink
Fix config rendering.
Browse files Browse the repository at this point in the history
Provided that int values can be quoted in the config, this fixes the issue where strings are not quoted in the rendered config.
  • Loading branch information
Naseem authored and rawkode committed Mar 7, 2020
1 parent 0de8813 commit 55f52e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion charts/influxdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: influxdb
version: 4.3.4
version: 4.3.5
appVersion: 1.7.10
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
Expand Down
28 changes: 14 additions & 14 deletions charts/influxdb/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
[meta]
dir = "/var/lib/influxdb/meta"
{{- range $key, $value := index .Values.config.meta }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{- if .Values.enterprise.enabled }}
Expand All @@ -24,44 +24,44 @@ data:
dir = "/var/lib/influxdb/data"
wal-dir = "/var/lib/influxdb/wal"
{{- range $key, $value := index .Values.config.data }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[coordinator]
{{- range $key, $value := index .Values.config.coordinator }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[retention]
{{- range $key, $value := index .Values.config.retention }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[shard-precreation]
{{- range $key, $value := index .Values.config.shard_precreation }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[monitor]
{{- range $key, $value := index .Values.config.monitor }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[subscriber]
{{- range $key, $value := index .Values.config.subscriber }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[http]
{{- range $key, $value := index .Values.config.http }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
# TODO: allow multiple graphite listeners
[[graphite]]
{{- range $key, $value := index .Values.config.graphite }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{- if .Values.config.graphite.templates }}
templates = [
Expand All @@ -75,31 +75,31 @@ data:
[[collectd]]
{{- range $key, $value := index .Values.config.collectd }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
# TODO: allow multiple opentsdb listeners with templates
[[opentsdb]]
{{- range $key, $value := index .Values.config.opentsdb }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
# TODO: allow multiple udp listeners with templates
[[udp]]
{{- range $key, $value := index .Values.config.udp }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[continuous_queries]
{{- range $key, $value := index .Values.config.continuous_queries }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
[logging]
{{- range $key, $value := index .Values.config.logging }}
{{ $key }} = {{ $value }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{ if .Values.enterprise.enabled -}}
Expand Down

0 comments on commit 55f52e2

Please sign in to comment.