From c866a1d9319026d69dd0e3649e834518166b5531 Mon Sep 17 00:00:00 2001 From: Feruzjon Muyassarov Date: Tue, 3 Oct 2023 15:24:42 +0300 Subject: [PATCH] deployment: fix the nri volume type to DirectoryOrCreate 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 --- .../balloons/templates/daemonset.yaml | 2 +- .../topology-aware/templates/daemonset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/helm/resource-management-policies/balloons/templates/daemonset.yaml b/deployment/helm/resource-management-policies/balloons/templates/daemonset.yaml index 2da97dd52..33133bdd6 100644 --- a/deployment/helm/resource-management-policies/balloons/templates/daemonset.yaml +++ b/deployment/helm/resource-management-policies/balloons/templates/daemonset.yaml @@ -90,7 +90,7 @@ spec: - name: nrisockets hostPath: path: /var/run/nri - type: Directory + type: DirectoryOrCreate {{- if .Values.nri.patchContainerdConfig }} - name: containerd-config hostPath: diff --git a/deployment/helm/resource-management-policies/topology-aware/templates/daemonset.yaml b/deployment/helm/resource-management-policies/topology-aware/templates/daemonset.yaml index 4b6767091..467655acc 100644 --- a/deployment/helm/resource-management-policies/topology-aware/templates/daemonset.yaml +++ b/deployment/helm/resource-management-policies/topology-aware/templates/daemonset.yaml @@ -90,7 +90,7 @@ spec: - name: nrisockets hostPath: path: /var/run/nri - type: Directory + type: DirectoryOrCreate {{- if .Values.nri.patchContainerdConfig }} - name: containerd-config hostPath: