Commit 40aac55f authored by Dane Jensen's avatar Dane Jensen Committed by Kubernetes Prow Robot

[stable/telegraph] Added Support for volume mounts on deployment (#19512)

parent 314d0630
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.2.0 version: 1.3.0
appVersion: 1.12 appVersion: 1.12
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.
......
...@@ -34,6 +34,10 @@ spec: ...@@ -34,6 +34,10 @@ spec:
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /etc/telegraf mountPath: /etc/telegraf
{{- range .Values.volumeMounts}}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- if .Values.imagePullSecrets }} {{- if .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }} {{ toYaml .Values.imagePullSecrets | indent 8 }}
...@@ -42,3 +46,6 @@ spec: ...@@ -42,3 +46,6 @@ spec:
- name: config - name: config
configMap: configMap:
name: {{ include "telegraf.fullname" . }} name: {{ include "telegraf.fullname" . }}
{{- if .Values.volumeMounts }}
{{ toYaml .Values.volumeMounts | indent 6 }}
{{- end}}
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