Skip to content

Commit 9637be4

Browse files
chore(shield): mount host root volume in write mode when responder is enabled (#2237)
1 parent 000fb20 commit 9637be4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

charts/shield/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ maintainers:
1313
- name: mavimo
1414
email: marcovito.moscaritolo@sysdig.com
1515
type: application
16-
version: 1.4.3
16+
version: 1.4.4
1717
appVersion: "1.0.0"

charts/shield/templates/host/daemonset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ spec:
217217
{{- if (include "host.need_host_root" .) }}
218218
- mountPath: /host
219219
name: host-root
220+
{{- if not (eq (include "host.response_actions_enabled" .) "true") }}
220221
readOnly: true
222+
{{- end }}
221223
{{- if .Values.features.posture.host_posture.enabled }}
222224
- mountPath: /host/tmp
223225
name: host-tmp

charts/shield/tests/host/daemonset_test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ tests:
268268
content:
269269
name: host-root
270270
mountPath: /host
271-
readOnly: true
272271
- notExists:
273272
path: spec.template.spec.volumes[?(@.name == "host-tmp")]
274273

@@ -290,7 +289,6 @@ tests:
290289
content:
291290
name: host-root
292291
mountPath: /host
293-
readOnly: true
294292
- notExists:
295293
path: spec.template.spec.volumes[?(@.name == "host-tmp")]
296294

@@ -318,7 +316,6 @@ tests:
318316
content:
319317
name: host-root
320318
mountPath: /host
321-
readOnly: true
322319
- notExists:
323320
path: spec.template.spec.volumes[?(@.name == "host-tmp")]
324321

0 commit comments

Comments
 (0)