Skip to content

Commit

Permalink
fix(shield): set /var/data type to DirectoryOrCreate (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
aroberts87 authored Nov 20, 2024
1 parent 5c00ccd commit 42aa7ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/shield/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: mavimo
email: [email protected]
type: application
version: 0.2.7
version: 0.2.8
appVersion: "1.0.0"
1 change: 1 addition & 0 deletions charts/shield/templates/host/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ spec:
- name: vardata-vol
hostPath:
path: /var/data
type: DirectoryOrCreate
{{- if (include "host.driver.is_ebpf" .) }}
- name: bpf-probes
emptyDir: {}
Expand Down
6 changes: 6 additions & 0 deletions charts/shield/tests/host/daemonset_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42aa7ad

Please sign in to comment.