Unverified Commit 113cf02e authored by aro5000's avatar aro5000 Committed by GitHub

Add containerSecurityContext in deployment template (#495)

parent e25ae83f
apiVersion: v2 apiVersion: v2
name: telegraf name: telegraf
version: 1.8.19 version: 1.8.20
appVersion: 1.23.3 appVersion: 1.23.3
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.
......
...@@ -31,6 +31,10 @@ spec: ...@@ -31,6 +31,10 @@ spec:
serviceAccountName: {{ template "telegraf.serviceAccountName" . }} serviceAccountName: {{ template "telegraf.serviceAccountName" . }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{- if .Values.containerSecurityContext }}
securityContext:
{{ toYaml .Values.containerSecurityContext | indent 10 }}
{{- end }}
image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }} imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }}
resources: resources:
......
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