Skip to content

Commit

Permalink
Support node.kubeletPath helm chart value
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Aug 9, 2024
1 parent 0c2bc34 commit 694e53e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/aws-efs-csi-driver/templates/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -196,4 +196,4 @@ spec:
type: DirectoryOrCreate
{{- with .Values.node.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ node:
env: []
volumes: []
volumeMounts: []
kubeletPath: /var/lib/kubelet

storageClasses: []
# Add StorageClass resources like:
Expand Down

0 comments on commit 694e53e

Please sign in to comment.