Commit 423cd2d9 authored by Raphael Couto's avatar Raphael Couto Committed by Kubernetes Prow Robot

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

* Check for service.enabled Signed-off-by: 's avatarRaphael Couto <raphael.couto@gmail.com> * Removing dup lines Signed-off-by: 's avatarRaphael Couto <raphael.couto@gmail.com> * Bump version Signed-off-by: 's avatarRaphael Couto <raphael.couto@gmail.com>
parent 8716b2e5
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.1.3 version: 1.1.4
appVersion: 1.10 appVersion: 1.10
deprecated: false deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
{{- if .Values.service.enabled -}}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
...@@ -45,3 +46,4 @@ spec: ...@@ -45,3 +46,4 @@ spec:
selector: selector:
app.kubernetes.io/name: {{ include "telegraf.name" . }} app.kubernetes.io/name: {{ include "telegraf.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
...@@ -26,6 +26,7 @@ resources: {} ...@@ -26,6 +26,7 @@ resources: {}
# cpu: 100m # cpu: 100m
service: service:
enabled: true
type: ClusterIP type: ClusterIP
## Exposed telegraf configuration ## Exposed telegraf configuration
## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml` ## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`
......
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