From 694e53ea04ac9bdded419d633dae920a0179ade4 Mon Sep 17 00:00:00 2001 From: Angelos Kolaitis Date: Fri, 9 Aug 2024 10:49:12 +0300 Subject: [PATCH] Support node.kubeletPath helm chart value --- charts/aws-efs-csi-driver/templates/node-daemonset.yaml | 8 ++++---- charts/aws-efs-csi-driver/values.yaml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/aws-efs-csi-driver/templates/node-daemonset.yaml b/charts/aws-efs-csi-driver/templates/node-daemonset.yaml index 4fa44b9cd..ca76d16db 100644 --- a/charts/aws-efs-csi-driver/templates/node-daemonset.yaml +++ b/charts/aws-efs-csi-driver/templates/node-daemonset.yaml @@ -172,15 +172,15 @@ spec: volumes: - name: kubelet-dir hostPath: - path: /var/lib/kubelet + path: {{ .Values.node.kubeletPath }} type: Directory - name: plugin-dir hostPath: - path: /var/lib/kubelet/plugins/efs.csi.aws.com/ + path: {{ printf "%s/plugins/efs.csi.aws.com/" (trimSuffix "/" .Values.node.kubeletPath) }} type: DirectoryOrCreate - name: registration-dir hostPath: - path: /var/lib/kubelet/plugins_registry/ + path: {{ printf "%s/plugins_registry/" (trimSuffix "/" .Values.node.kubeletPath) }} type: Directory - name: efs-state-dir hostPath: @@ -196,4 +196,4 @@ spec: type: DirectoryOrCreate {{- with .Values.node.volumes }} {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/aws-efs-csi-driver/values.yaml b/charts/aws-efs-csi-driver/values.yaml index a9e549fb8..22689f08e 100644 --- a/charts/aws-efs-csi-driver/values.yaml +++ b/charts/aws-efs-csi-driver/values.yaml @@ -187,6 +187,7 @@ node: env: [] volumes: [] volumeMounts: [] + kubeletPath: /var/lib/kubelet storageClasses: [] # Add StorageClass resources like: