Skip to content

Commit

Permalink
update volumes, make same change for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
  • Loading branch information
paulczar committed Mar 15, 2022
1 parent f899685 commit 8bcfcc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
{{- end }}
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
- "--provider-volume={{ .Values.windows.providersDir }}"
- "--provider-volume={{ .Values.windows.providersDir }}"
- "--additional-provider-volume-paths={{ join "," .Values.windows.additionalProvidersDirs }}"
{{- if and (semverCompare ">= v0.0.9-0" .Values.windows.image.tag) .Values.minimumProviderVersions }}
- "--min-provider-version={{ .Values.minimumProviderVersions }}"
Expand Down Expand Up @@ -131,12 +131,15 @@ spec:
mountPath: C:\csi
- name: mountpoint-dir
mountPath: {{ .Values.windows.kubeletRootDir }}\pods
{{- $providersDir := .Values.windows.providersDir }}
- name: providers-dir
mountPath: "{{ .Values.windows.providersDir }}"
mountPath: "{{ $providersDir }}"
{{- range $i, $path := .Values.windows.additionalProvidersDirs }}
{{- if ne $providersDir $path }}
- name: providers-dir-{{ $i }}
mountPath: "{{ $path }}"
{{- end }}
{{- end }}
{{- if .Values.windows.volumeMounts }}
{{- toYaml .Values.windows.volumeMounts | nindent 12}}
{{- end }}
Expand Down Expand Up @@ -177,16 +180,19 @@ spec:
hostPath:
path: {{ .Values.windows.kubeletRootDir }}\plugins\csi-secrets-store\
type: DirectoryOrCreate
{{- $providersDir := .Values.windows.providersDir }}
- name: providers-dir
hostPath:
path: "{{ .Values.windows.providersDir }}"
path: "{{ $providersDir }}"
type: DirectoryOrCreate
{{- range $i, $path := .Values.windows.additionalProvidersDirs }}
{{- if ne $path $providersDir }}
- name: providers-dir-{{ $i }}
hostPath:
path: "{{ $path }}"
type: DirectoryOrCreate
{{- end }}
{{- end }}
{{- if .Values.windows.volumes }}
{{- toYaml .Values.windows.volumes | nindent 8}}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,18 @@ spec:
hostPath:
path: {{ .Values.linux.kubeletRootDir }}/plugins/csi-secrets-store/
type: DirectoryOrCreate
{{- $providersDir := .Values.linux.providersDir }}
- name: providers-dir
hostPath:
path: {{ .Values.linux.providersDir }}
path: {{ $providersDir }}
type: DirectoryOrCreate
{{- range $i, $path := .Values.linux.additionalProvidersDirs }}
{{- if ne $path $providersDir }}
- name: providers-dir-{{ $i }}
hostPath:
path: "{{ $path }}"
type: DirectoryOrCreate
{{- end}}
{{- end }}
{{- if .Values.linux.volumes }}
{{- toYaml .Values.linux.volumes | nindent 8}}
Expand Down

0 comments on commit 8bcfcc6

Please sign in to comment.