Commit c22d19f4 authored by Hugo Cortes's avatar Hugo Cortes Committed by David McKay

fix(influxdb): pass boolean conf values as is to configmap

parent 33074745
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.3.5 version: 4.3.6
appVersion: 1.7.10 appVersion: 1.7.10
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -12,7 +12,12 @@ data: ...@@ -12,7 +12,12 @@ data:
[meta] [meta]
dir = "/var/lib/influxdb/meta" dir = "/var/lib/influxdb/meta"
{{- range $key, $value := index .Values.config.meta }} {{- range $key, $value := index .Values.config.meta }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
{{- if .Values.enterprise.enabled }} {{- if .Values.enterprise.enabled }}
...@@ -24,44 +29,84 @@ data: ...@@ -24,44 +29,84 @@ data:
dir = "/var/lib/influxdb/data" dir = "/var/lib/influxdb/data"
wal-dir = "/var/lib/influxdb/wal" wal-dir = "/var/lib/influxdb/wal"
{{- range $key, $value := index .Values.config.data }} {{- range $key, $value := index .Values.config.data }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[coordinator] [coordinator]
{{- range $key, $value := index .Values.config.coordinator }} {{- range $key, $value := index .Values.config.coordinator }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[retention] [retention]
{{- range $key, $value := index .Values.config.retention }} {{- range $key, $value := index .Values.config.retention }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[shard-precreation] [shard-precreation]
{{- range $key, $value := index .Values.config.shard_precreation }} {{- range $key, $value := index .Values.config.shard_precreation }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[monitor] [monitor]
{{- range $key, $value := index .Values.config.monitor }} {{- range $key, $value := index .Values.config.monitor }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[subscriber] [subscriber]
{{- range $key, $value := index .Values.config.subscriber }} {{- range $key, $value := index .Values.config.subscriber }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[http] [http]
{{- range $key, $value := index .Values.config.http }} {{- range $key, $value := index .Values.config.http }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
# TODO: allow multiple graphite listeners # TODO: allow multiple graphite listeners
[[graphite]] [[graphite]]
{{- range $key, $value := index .Values.config.graphite }} {{- range $key, $value := index .Values.config.graphite }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
{{- if .Values.config.graphite.templates }} {{- if .Values.config.graphite.templates }}
templates = [ templates = [
...@@ -75,31 +120,56 @@ data: ...@@ -75,31 +120,56 @@ data:
[[collectd]] [[collectd]]
{{- range $key, $value := index .Values.config.collectd }} {{- range $key, $value := index .Values.config.collectd }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
# TODO: allow multiple opentsdb listeners with templates # TODO: allow multiple opentsdb listeners with templates
[[opentsdb]] [[opentsdb]]
{{- range $key, $value := index .Values.config.opentsdb }} {{- range $key, $value := index .Values.config.opentsdb }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
# TODO: allow multiple udp listeners with templates # TODO: allow multiple udp listeners with templates
[[udp]] [[udp]]
{{- range $key, $value := index .Values.config.udp }} {{- range $key, $value := index .Values.config.udp }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[continuous_queries] [continuous_queries]
{{- range $key, $value := index .Values.config.continuous_queries }} {{- range $key, $value := index .Values.config.continuous_queries }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
[logging] [logging]
{{- range $key, $value := index .Values.config.logging }} {{- range $key, $value := index .Values.config.logging }}
{{- $tp := typeOf $value }}
{{- if eq $tp "string" }}
{{ $key }} = {{ $value | quote }} {{ $key }} = {{ $value | quote }}
{{- else }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }} {{- end }}
{{ if .Values.enterprise.enabled -}} {{ if .Values.enterprise.enabled -}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment