Skip to content

Commit 33a6486

Browse files
authored
Merge pull request #753 from snyk/fix/revert
fix: revert mount permissions and init container
2 parents 2d49e0c + 479c539 commit 33a6486

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}"

0 commit comments

Comments
 (0)