File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
charts/aws-efs-csi-driver Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 96
96
{{- end }}
97
97
volumeMounts :
98
98
- name : kubelet-dir
99
- mountPath : /var/lib/kubelet
99
+ mountPath : {{ .Values.node.kubeletPath }}
100
100
mountPropagation : " Bidirectional"
101
101
- name : plugin-dir
102
102
mountPath : /csi
@@ -135,7 +135,7 @@ spec:
135
135
- name : ADDRESS
136
136
value : /csi/csi.sock
137
137
- name : DRIVER_REG_SOCK_PATH
138
- value : /var/lib/kubelet/ plugins/efs.csi.aws.com/csi.sock
138
+ value : {{ printf "%s/ plugins/efs.csi.aws.com/csi.sock" (trimSuffix "/" .Values.node.kubeletPath) }}
139
139
- name : KUBE_NODE_NAME
140
140
valueFrom :
141
141
fieldRef :
@@ -172,15 +172,15 @@ spec:
172
172
volumes :
173
173
- name : kubelet-dir
174
174
hostPath :
175
- path : /var/lib/kubelet
175
+ path : {{ .Values.node.kubeletPath }}
176
176
type : Directory
177
177
- name : plugin-dir
178
178
hostPath :
179
- path : /var/lib/kubelet/ plugins/efs.csi.aws.com/
179
+ path : {{ printf "%s/ plugins/efs.csi.aws.com/" (trimSuffix "/" .Values.node.kubeletPath) }}
180
180
type : DirectoryOrCreate
181
181
- name : registration-dir
182
182
hostPath :
183
- path : /var/lib/kubelet/ plugins_registry/
183
+ path : {{ printf "%s/ plugins_registry/" (trimSuffix "/" .Values.node.kubeletPath) }}
184
184
type : Directory
185
185
- name : efs-state-dir
186
186
hostPath :
@@ -196,4 +196,4 @@ spec:
196
196
type : DirectoryOrCreate
197
197
{{- with .Values.node.volumes }}
198
198
{{- toYaml . | nindent 8 }}
199
- {{- end }}
199
+ {{- end }}
Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ node:
187
187
env : []
188
188
volumes : []
189
189
volumeMounts : []
190
+ kubeletPath : /var/lib/kubelet
190
191
191
192
storageClasses : []
192
193
# Add StorageClass resources like:
You can’t perform that action at this time.
0 commit comments