85
85
- mountPath : /csi
86
86
name : socket-dir
87
87
resources : {{- toYaml .Values.controller.resources.csiProvisioner | nindent 12 }}
88
+ securityContext :
89
+ capabilities :
90
+ drop :
91
+ - ALL
88
92
- name : csi-attacher
89
93
{{- if hasPrefix "/" .Values.image.csiAttacher.repository }}
90
94
image : " {{ .Values.image.baseRepo }}{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
@@ -107,6 +111,10 @@ spec:
107
111
- mountPath : /csi
108
112
name : socket-dir
109
113
resources : {{- toYaml .Values.controller.resources.csiAttacher | nindent 12 }}
114
+ securityContext :
115
+ capabilities :
116
+ drop :
117
+ - ALL
110
118
- name : csi-snapshotter
111
119
{{- if hasPrefix "/" .Values.snapshot.image.csiSnapshotter.repository }}
112
120
image : " {{ .Values.image.baseRepo }}{{ .Values.snapshot.image.csiSnapshotter.repository }}:{{ .Values.snapshot.image.csiSnapshotter.tag }}"
@@ -125,6 +133,10 @@ spec:
125
133
- name : socket-dir
126
134
mountPath : /csi
127
135
resources : {{- toYaml .Values.controller.resources.csiSnapshotter | nindent 12 }}
136
+ securityContext :
137
+ capabilities :
138
+ drop :
139
+ - ALL
128
140
- name : csi-resizer
129
141
{{- if hasPrefix "/" .Values.image.csiResizer.repository }}
130
142
image : " {{ .Values.image.baseRepo }}{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
@@ -147,6 +159,10 @@ spec:
147
159
- name : socket-dir
148
160
mountPath : /csi
149
161
resources : {{- toYaml .Values.controller.resources.csiResizer | nindent 12 }}
162
+ securityContext :
163
+ capabilities :
164
+ drop :
165
+ - ALL
150
166
- name : liveness-probe
151
167
{{- if hasPrefix "/" .Values.image.livenessProbe.repository }}
152
168
image : " {{ .Values.image.baseRepo }}{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
@@ -167,6 +183,10 @@ spec:
167
183
- name : socket-dir
168
184
mountPath : /csi
169
185
resources : {{- toYaml .Values.controller.resources.livenessProbe | nindent 12 }}
186
+ securityContext :
187
+ capabilities :
188
+ drop :
189
+ - ALL
170
190
- name : azurefile
171
191
{{- if hasPrefix "/" .Values.image.azurefile.repository }}
172
192
image : " {{ .Values.image.baseRepo }}{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
@@ -240,6 +260,10 @@ spec:
240
260
readOnly : true
241
261
{{- end }}
242
262
resources : {{- toYaml .Values.controller.resources.azurefile | nindent 12 }}
263
+ securityContext :
264
+ capabilities :
265
+ drop :
266
+ - ALL
243
267
volumes :
244
268
- name : socket-dir
245
269
emptyDir : {}
0 commit comments