Skip to content

Commit e8a3eb7

Browse files
committed
feat(mounts): additional mounts for the proxy installer init container
1 parent c179068 commit e8a3eb7

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,19 @@ spec:
107107
- name: ALLOW_PACKAGE_INSTALL_DOWNGRADE
108108
value: "{{ .Values.node.blobfuseProxy.allowPackageInstallDowngrade }}"
109109
volumeMounts:
110+
- name: host-home-kubernetes-bin
111+
mountPath: /host/home/kubernetes/bin
112+
- name: host-var-bin
113+
mountPath: /host/var/bin
110114
- name: host-usr
111115
mountPath: /host/usr
112116
- name: host-usr-local
113117
mountPath: /host/usr/local
114118
- name: host-etc
115119
mountPath: /host/etc
120+
{{- if .Values.node.additionalVolumeMounts }}
121+
{{- toYaml .Values.node.additionalVolumeMounts | nindent 12 }}
122+
{{- end }}
116123
containers:
117124
- name: liveness-probe
118125
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
@@ -284,6 +291,12 @@ spec:
284291
name: mountpoint-dir
285292
{{- end }}
286293
volumes:
294+
- name: host-home-kubernetes-bin
295+
hostPath:
296+
path: /home/kubernetes/bin
297+
- name: host-var-bin
298+
hostPath:
299+
path: /var/bin
287300
- name: host-usr
288301
hostPath:
289302
path: /usr
@@ -332,6 +345,9 @@ spec:
332345
path: /lib/modules
333346
type: DirectoryOrCreate
334347
{{- end }}
348+
{{- if .Values.node.additionalVolumes }}
349+
{{- toYaml .Values.node.additionalVolumes | nindent 8 }}
350+
{{- end }}
335351
{{- if .Values.securityContext }}
336352
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
337353
{{- end }}

charts/latest/blob-csi-driver/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,21 @@ node:
162162
tolerations:
163163
- operator: "Exists"
164164
enableAznfsMount: true
165+
# Additional volumes to be added to the DaemonSet
166+
additionalVolumes: []
167+
# - name: custom-config
168+
# configMap:
169+
# name: my-config
170+
# - name: custom-secret
171+
# secret:
172+
# secretName: my-secret
173+
# Additional volume mounts to be added to the init container
174+
additionalVolumeMounts: []
175+
# - name: custom-config
176+
# mountPath: /etc/custom-config
177+
# - name: custom-secret
178+
# mountPath: /etc/custom-secret
179+
# readOnly: true
165180

166181
feature:
167182
fsGroupPolicy: ReadWriteOnceWithFSType

0 commit comments

Comments
 (0)