File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 33
33
{{- toYaml . | nindent 8 }}
34
34
{{- end }}
35
35
spec :
36
- {{- with .Values.securityContext.fsGroup }}
36
+ {{- with .Values.podSecurityContext }}
37
37
securityContext :
38
- fsGroup : {{ int . }}
38
+ {{- toYaml . | nindent 8 }}
39
39
{{- end }}
40
40
affinity :
41
41
nodeAffinity :
@@ -250,14 +250,10 @@ spec:
250
250
exec :
251
251
command :
252
252
- " true"
253
+ {{- with .Values.snykMonitorSecurityContext }}
253
254
securityContext :
254
- privileged : false
255
- runAsNonRoot : true
256
- allowPrivilegeEscalation : false
257
- readOnlyRootFilesystem : true
258
- capabilities :
259
- drop :
260
- - ALL
255
+ {{- toYaml . | nindent 12 }}
256
+ {{- end }}
261
257
volumes :
262
258
- name : docker-config
263
259
secret :
Original file line number Diff line number Diff line change @@ -134,9 +134,17 @@ excludedNamespaces:
134
134
# template:
135
135
# spec:
136
136
# securityContext:
137
- # fsGroup: <-- here
138
- securityContext :
139
- fsGroup :
137
+ # ... <-- here
138
+ podSecurityContext : {}
139
+
140
+ snykMonitorSecurityContext :
141
+ privileged : false
142
+ runAsNonRoot : true
143
+ allowPrivilegeEscalation : false
144
+ readOnlyRootFilesystem : true
145
+ capabilities :
146
+ drop :
147
+ - ALL
140
148
141
149
# Set node tolerations for snyk-monitor
142
150
tolerations : []
You can’t perform that action at this time.
0 commit comments