Skip to content

Commit ce2849c

Browse files
BYondRAKdanieljkemp
authored andcommitted
Allow use of securityContext
Update Deployment with securityContext for pod and Container
1 parent 2fb90f7 commit ce2849c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/nfs-subdir-external-provisioner/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ spec:
2424
{{- include "nfs-subdir-external-provisioner.podLabels" . | nindent 8 }}
2525
spec:
2626
serviceAccountName: {{ template "nfs-subdir-external-provisioner.serviceAccountName" . }}
27+
securityContext:
28+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
2729
{{- if .Values.nodeSelector }}
2830
nodeSelector:
2931
{{ toYaml .Values.nodeSelector | indent 8 }}
@@ -43,6 +45,8 @@ spec:
4345
- name: {{ .Chart.Name }}
4446
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
4547
imagePullPolicy: {{ .Values.image.pullPolicy }}
48+
securityContext:
49+
{{- toYaml .Values.securityContext | nindent 12 }}
4650
volumeMounts:
4751
- name: {{ .Values.nfs.volumeName }}
4852
mountPath: /persistentvolumes

0 commit comments

Comments
 (0)