Skip to content

Commit 82b6f17

Browse files
Devon Mizellemrueg
authored andcommitted
Add support for securityContext
This commit adds an optional value to template out securityContext for the deployment. Signed-off-by: Devon Mizelle <[email protected]>
1 parent ab965d9 commit 82b6f17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stable/coredns/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ spec:
127127
exec:
128128
command: ["/usr/bin/sleep", "{{ .Values.preStopSleep }}"]
129129
{{- end }}
130+
{{- if .Values.securityContext }}
131+
securityContext:
132+
{{- toYaml .Values.securityContext | nindent 10 }}
133+
{{- end }}
130134
volumes:
131135
- name: config-volume
132136
configMap:

0 commit comments

Comments
 (0)