Skip to content

Commit

Permalink
deployment: fix the nri volume type to DirectoryOrCreate
Browse files Browse the repository at this point in the history
If the NRI feature is not enable yet in the runtime, runnig Helm
charts with nri.patchContainerdConfig parameter set to true will
fail because the directory is not created yet. Setting the hostPath
volume type to DirectoryOrCreate ensures that we get the directory
created in case it's missing.

Signed-off-by: Feruzjon Muyassarov <[email protected]>
  • Loading branch information
fmuyassarov authored and klihub committed Oct 4, 2023
1 parent e00e6f0 commit c866a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
- name: nrisockets
hostPath:
path: /var/run/nri
type: Directory
type: DirectoryOrCreate
{{- if .Values.nri.patchContainerdConfig }}
- name: containerd-config
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
- name: nrisockets
hostPath:
path: /var/run/nri
type: Directory
type: DirectoryOrCreate
{{- if .Values.nri.patchContainerdConfig }}
- name: containerd-config
hostPath:
Expand Down

0 comments on commit c866a1d

Please sign in to comment.