only install daemonset if collectorUrl is set (#5235)

* only install daemonset if collectorUrl is set as it will not work properly. This will also ensure our tests reliably pass.

* bump version and add current appVersion

* use test values the use fake URL but exclude paths from processing to prevent errors.
This commit is contained in:
Frank Reno
2018-04-25 12:05:01 -07:00
committed by k8s-ci-robot
parent 53a4ae3284
commit 416a3b5cae
3 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
name: sumologic-fluentd
version: 0.3.1
version: 0.3.2
appVersion: v1.6
description: Sumologic Log Collector
keywords:
- monitoring
@@ -0,0 +1,3 @@
sumologic:
collectorUrl: https://endpoint1.collection.us2.sumologic.com/receiver/v1/http/1234
excludePath: "[\"/mnt/log/*.log\", \"/var/log/*.log\", \"/mnt/log/*/*.log\"]"
@@ -1,3 +1,4 @@
{{- if .Values.sumologic.collectorUrl -}}
# Sumologic collector URL is required
apiVersion: extensions/v1beta1
kind: DaemonSet
@@ -190,3 +191,4 @@ spec:
{{- end }}
updateStrategy:
type: "{{ .Values.updateStrategy }}"
{{- end }}