1111 reporting-disabled = false
1212
1313 [http]
14- {{- range $key, $value := index .Values.data.config.http }}
15- {{- $tp := typeOf $value }}
16- {{- if eq $tp "string" }}
17- {{ $key }} = {{ $value | quote }}
18- {{- else }}
19- {{ $key }} = {{ $value }}
20- {{- end }}
21- {{- end }}
14+ {{- include "renderConfigMap" .Values.data.config.http }}
2215
2316 [enterprise]
2417 {{ if .Values.license.key }}
@@ -34,67 +27,24 @@ data:
3427
3528 [hinted-handoff]
3629 dir = "/var/lib/influxdb/hh"
37- {{- range $key, $value := index .Values.data.config.hintedHandoff }}
38- {{- $tp := typeOf $value }}
39- {{- if eq $tp "string" }}
40- {{ $key }} = {{ $value | quote }}
41- {{- else }}
42- {{ $key }} = {{ $value | int }}
43- {{- end }}
44- {{- end }}
30+ {{- include "renderConfigMap" .Values.data.config.hintedHandoff }}
4531
4632 [data]
4733 dir = "/var/lib/influxdb/data"
4834 wal-dir = "/var/lib/influxdb/wal"
49- {{- range $key, $value := index .Values.data.config.data }}
50- {{- $tp := typeOf $value }}
51- {{- if eq $tp "string" }}
52- {{ $key }} = {{ $value | quote }}
53- {{- else }}
54- {{ $key }} = {{ $value }}
55- {{- end }}
56- {{- end }}
35+ {{- include "renderConfigMap" .Values.data.config.data }}
5736
5837 [anti-entropy]
59- {{- range $key, $value := index .Values.data.config.antiEntropy }}
60- {{- $tp := typeOf $value }}
61- {{- if eq $tp "string" }}
62- {{ $key }} = {{ $value | quote }}
63- {{- else }}
64- {{ $key }} = {{ $value }}
65- {{- end }}
66- {{- end }}
38+ {{- include "renderConfigMap" .Values.data.config.antiEntropy }}
6739
6840 [cluster]
69- {{- range $key, $value := index .Values.data.config.cluster }}
70- {{- $tp := typeOf $value }}
71- {{- if eq $tp "string" }}
72- {{ $key }} = {{ $value | quote }}
73- {{- else }}
74- {{ $key }} = {{ $value }}
75- {{- end }}
76- {{- end }}
41+ {{- include "renderConfigMap" .Values.data.config.cluster }}
7742
7843 [continuous_queries]
79- {{- range $key, $value := index .Values.data.config.continuousQueries }}
80- {{- $tp := typeOf $value }}
81- {{- if eq $tp "string" }}
82- {{ $key }} = {{ $value | quote }}
83- {{- else }}
84- {{ $key }} = {{ $value }}
85- {{- end }}
86- {{- end }}
44+ {{- include "renderConfigMap" .Values.data.config.continuousQueries }}
8745
8846 [logging]
89- {{- range $key, $value := index .Values.data.config.logging }}
90- {{- $tp := typeOf $value }}
91- {{- if eq $tp "string" }}
92- {{ $key }} = {{ $value | quote }}
93- {{- else }}
94- {{ $key }} = {{ $value }}
95- {{- end }}
96- {{- end }}
97-
47+ {{- include "renderConfigMap" .Values.data.config.logging }}
9848
9949 entrypoint.pl : |+
10050 #!/usr/bin/env perl
0 commit comments