Skip to content

Commit

Permalink
Add containerSecurityContext in deployment template (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
aro5000 authored Aug 17, 2022
1 parent e25ae83 commit 113cf02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/telegraf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: telegraf
version: 1.8.19
version: 1.8.20
appVersion: 1.23.3
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 charts/telegraf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
serviceAccountName: {{ template "telegraf.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.containerSecurityContext }}
securityContext:
{{ toYaml .Values.containerSecurityContext | indent 10 }}
{{- end }}
image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }}
resources:
Expand Down

0 comments on commit 113cf02

Please sign in to comment.