Skip to content

Commit 75c560d

Browse files
committed
chore: change node registrar path to support linuxPath
1 parent 0f095d9 commit 75c560d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/latest/csi-driver-smb/templates/csi-smb-node-windows.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
args:
4646
- --v=5
4747
- --csi-address=$(CSI_ENDPOINT)
48-
- --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\smb.csi.k8s.io\\csi.sock
48+
- --kubelet-registration-path={{ .Values.kubelet.windowsPath }}\\plugins\\smb.csi.k8s.io\\csi.sock
4949
env:
5050
- name: CSI_ENDPOINT
5151
value: unix://C:\\csi\\csi.sock
@@ -138,4 +138,4 @@ spec:
138138
hostPath:
139139
path: {{ .Values.kubelet.windowsPath }}\plugins\smb.csi.k8s.io\
140140
type: DirectoryOrCreate
141-
{{- end -}}
141+
{{- end -}}

charts/latest/csi-driver-smb/templates/csi-smb-node.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
- name: ADDRESS
5656
value: /csi/csi.sock
5757
- name: DRIVER_REG_SOCK_PATH
58-
value: /var/lib/kubelet/plugins/smb.csi.k8s.io/csi.sock
58+
value: {{ .Values.kubelet.linuxPath }}/plugins/smb.csi.k8s.io/csi.sock
5959
imagePullPolicy: {{ .Values.image.nodeDriverRegistrar.pullPolicy }}
6060
volumeMounts:
6161
- name: socket-dir

0 commit comments

Comments
 (0)