Unverified Commit 4106a8bd authored by Michael André Pearce's avatar Michael André Pearce Committed by GitHub

Support being able to set securityContext (#153)

* Support being able to set securityContext * Bump chart version Co-authored-by: 's avatartimhallinflux <timhallinflux@users.noreply.github.com>
parent 54713408
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.7.23 version: 1.7.24
appVersion: 1.14 appVersion: 1.14
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.
......
...@@ -24,6 +24,10 @@ spec: ...@@ -24,6 +24,10 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }} {{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
serviceAccountName: {{ template "telegraf.serviceAccountName" . }} serviceAccountName: {{ template "telegraf.serviceAccountName" . }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
......
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