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