|
76 | 76 | {{- end }}
|
77 | 77 | - "--endpoint=$(CSI_ENDPOINT)"
|
78 | 78 | - "--nodeid=$(KUBE_NODE_NAME)"
|
79 |
| - - "--provider-volume={{ .Values.windows.providersDir }}" |
| 79 | + - "--provider-volume={{ .Values.windows.providersDir }}" |
80 | 80 | - "--additional-provider-volume-paths={{ join "," .Values.windows.additionalProvidersDirs }}"
|
81 | 81 | {{- if and (semverCompare ">= v0.0.9-0" .Values.windows.image.tag) .Values.minimumProviderVersions }}
|
82 | 82 | - "--min-provider-version={{ .Values.minimumProviderVersions }}"
|
@@ -131,12 +131,15 @@ spec:
|
131 | 131 | mountPath: C:\csi
|
132 | 132 | - name: mountpoint-dir
|
133 | 133 | mountPath: {{ .Values.windows.kubeletRootDir }}\pods
|
| 134 | + {{- $providersDir := .Values.windows.providersDir }} |
134 | 135 | - name: providers-dir
|
135 |
| - mountPath: "{{ .Values.windows.providersDir }}" |
| 136 | + mountPath: "{{ $providersDir }}" |
136 | 137 | {{- range $i, $path := .Values.windows.additionalProvidersDirs }}
|
| 138 | + {{- if ne $providersDir $path }} |
137 | 139 | - name: providers-dir-{{ $i }}
|
138 | 140 | mountPath: "{{ $path }}"
|
139 | 141 | {{- end }}
|
| 142 | + {{- end }} |
140 | 143 | {{- if .Values.windows.volumeMounts }}
|
141 | 144 | {{- toYaml .Values.windows.volumeMounts | nindent 12}}
|
142 | 145 | {{- end }}
|
@@ -177,16 +180,19 @@ spec:
|
177 | 180 | hostPath:
|
178 | 181 | path: {{ .Values.windows.kubeletRootDir }}\plugins\csi-secrets-store\
|
179 | 182 | type: DirectoryOrCreate
|
| 183 | + {{- $providersDir := .Values.windows.providersDir }} |
180 | 184 | - name: providers-dir
|
181 | 185 | hostPath:
|
182 |
| - path: "{{ .Values.windows.providersDir }}" |
| 186 | + path: "{{ $providersDir }}" |
183 | 187 | type: DirectoryOrCreate
|
184 | 188 | {{- range $i, $path := .Values.windows.additionalProvidersDirs }}
|
| 189 | + {{- if ne $path $providersDir }} |
185 | 190 | - name: providers-dir-{{ $i }}
|
186 | 191 | hostPath:
|
187 | 192 | path: "{{ $path }}"
|
188 | 193 | type: DirectoryOrCreate
|
189 | 194 | {{- end }}
|
| 195 | + {{- end }} |
190 | 196 | {{- if .Values.windows.volumes }}
|
191 | 197 | {{- toYaml .Values.windows.volumes | nindent 8}}
|
192 | 198 | {{- end }}
|
|
0 commit comments