Commit d737673e authored by Jack Zampolin's avatar Jack Zampolin

Make deployment not work unless influxdb url is set

parent ac620766
{{- if gt (len .Values.single.config.outputs.influxdb.urls) 0 }}
{{- if .Values.single.enabled -}}
apiVersion: v1
kind: ConfigMap
......@@ -15,3 +16,4 @@ data:
{{ template "outputs" .Values.single.config.outputs }}
{{ template "inputs" .Values.single.config.inputs -}}
{{- end -}}
{{- end -}}
\ No newline at end of file
{{- if gt (len .Values.daemonset.config.outputs.influxdb.urls) 0 }}
{{- if .Values.daemonset.enabled -}}
apiVersion: v1
kind: ConfigMap
......@@ -15,3 +16,4 @@ data:
{{ template "outputs" .Values.daemonset.config.outputs }}
{{ template "inputs" .Values.daemonset.config.inputs -}}
{{- end -}}
{{- end -}}
\ No newline at end of file
{{- if gt (len .Values.daemonset.config.outputs.influxdb.urls) 0 }}
{{- if .Values.daemonset.enabled -}}
apiVersion: extensions/v1beta1
kind: DaemonSet
......@@ -60,3 +61,4 @@ spec:
configMap:
name: {{ template "fullname" . }}-ds
{{- end -}}
{{- end -}}
\ No newline at end of file
{{- if gt (len .Values.single.config.outputs.influxdb.urls) 0 }}
{{- if .Values.single.enabled -}}
apiVersion: extensions/v1beta1
kind: Deployment
......@@ -28,3 +29,4 @@ spec:
configMap:
name: {{ template "fullname" . }}-s
{{- end -}}
{{- end -}}
\ No newline at end of file
{{- if gt (len .Values.single.config.outputs.influxdb.urls) 0 }}
{{- if .Values.single.enabled -}}
{{- if .Values.single.service.enabled -}}
apiVersion: v1
......@@ -40,3 +41,4 @@ spec:
app: {{ template "fullname" . }}-s
{{- end -}}
{{- end -}}
{{- end -}}
\ No newline at end of file
......@@ -41,8 +41,8 @@ daemonset:
omit_hostname: false
outputs:
influxdb:
urls:
- "http://influxdb-influxdb.tick:8086"
urls: []
# - "http://influxdb-influxdb.tick:8086"
database: "telegraf"
## retention_policy: ""
## write_consistency: "any"
......@@ -175,8 +175,8 @@ single:
omit_hostname: false
outputs:
influxdb:
urls:
- "http://influxdb-influxdb.tick:8086"
urls: []
# - "http://influxdb-influxdb.tick:8086"
database: "telegraf"
## retention_policy: ""
## write_consistency: "any"
......
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