diff --git a/charts/shield/Chart.yaml b/charts/shield/Chart.yaml index b21282555..516cd2177 100644 --- a/charts/shield/Chart.yaml +++ b/charts/shield/Chart.yaml @@ -13,5 +13,5 @@ maintainers: - name: mavimo email: marcovito.moscaritolo@sysdig.com type: application -version: 0.2.7 +version: 0.2.8 appVersion: "1.0.0" diff --git a/charts/shield/templates/host/daemonset.yaml b/charts/shield/templates/host/daemonset.yaml index 29ed30b5f..b8b53e342 100644 --- a/charts/shield/templates/host/daemonset.yaml +++ b/charts/shield/templates/host/daemonset.yaml @@ -323,6 +323,7 @@ spec: - name: vardata-vol hostPath: path: /var/data + type: DirectoryOrCreate {{- if (include "host.driver.is_ebpf" .) }} - name: bpf-probes emptyDir: {} diff --git a/charts/shield/tests/host/daemonset_test.yaml b/charts/shield/tests/host/daemonset_test.yaml index 3653f2444..851ea9343 100644 --- a/charts/shield/tests/host/daemonset_test.yaml +++ b/charts/shield/tests/host/daemonset_test.yaml @@ -613,3 +613,9 @@ tests: asserts: - isNullOrEmpty: path: spec.template.spec.imagePullSecrets + + - it: Test that /var/data is type DirectoryOrCreate + asserts: + - equal: + path: spec.template.spec.volumes[?(@.name == "vardata-vol")].hostPath.type + value: DirectoryOrCreate