[stable/telegraf] Check for service.enabled (#15263)

* Check for service.enabled

Signed-off-by: Raphael Couto <raphael.couto@gmail.com>

* Removing dup lines

Signed-off-by: Raphael Couto <raphael.couto@gmail.com>

* Bump version

Signed-off-by: Raphael Couto <raphael.couto@gmail.com>
This commit is contained in:
Raphael Couto
2019-07-07 08:12:33 -07:00
committed by Kubernetes Prow Robot
parent ca77541782
commit b5b2942c9f
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: telegraf
version: 1.1.3
version: 1.1.4
appVersion: 1.10
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
+2
View File
@@ -1,3 +1,4 @@
{{- if .Values.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
@@ -45,3 +46,4 @@ spec:
selector:
app.kubernetes.io/name: {{ include "telegraf.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
+1
View File
@@ -26,6 +26,7 @@ resources: {}
# cpu: 100m
service:
enabled: true
type: ClusterIP
## Exposed telegraf configuration
## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`