File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,23 @@ spec:
1818 app.kubernetes.io/name : {{ include "snyk-monitor.name" . }}
1919 app.kubernetes.io/instance : {{ .Release.Name }}
2020 spec :
21- securityContext :
22- fsGroup : 2000
2321 serviceAccountName : {{ include "snyk-monitor.name" . }}
2422 restartPolicy : Always
23+ initContainers :
24+ - name : volume-permissions
25+ image : " {{ .Values.initContainerImage.repository }}:{{ .Values.initContainerImage.tag }}"
26+ command : ['sh', '-c', 'chmod -R go+rwX /var/tmp || true']
27+ volumeMounts :
28+ - name : temporary-storage
29+ mountPath : " /var/tmp"
30+ securityContext :
31+ privileged : false
32+ runAsNonRoot : false
33+ allowPrivilegeEscalation : false
34+ readOnlyRootFilesystem : true
35+ capabilities :
36+ drop :
37+ - ALL
2538 containers :
2639 - name : {{ include "snyk-monitor.name" . }}
2740 image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
You can’t perform that action at this time.
0 commit comments