Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

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

Merged
merged 4 commits into from
Jul 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/telegraf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: telegraf
version: 1.1.2
version: 1.1.3
appVersion: 1.10
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
Expand Down
4 changes: 4 additions & 0 deletions stable/telegraf/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- if .Values.service.enabled -}}
{{- if .Values.service.enabled -}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove one of these 2?

apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -45,3 +47,5 @@ spec:
selector:
app.kubernetes.io/name: {{ include "telegraf.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{- end -}}
1 change: 1 addition & 0 deletions stable/telegraf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,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`
Expand Down