Skip to content

Commit 4dba5f4

Browse files
committed
fix: RedHat/CentOS issue in helm installation
1 parent 1985e52 commit 4dba5f4

File tree

5 files changed

+43
-8
lines changed

5 files changed

+43
-8
lines changed

charts/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ The following table lists the configurable parameters of the latest Azure Blob S
9999
| `node.affinity` | node pod affinity | {} |
100100
| `node.nodeSelector` | node pod node selector | {} |
101101
| `node.tolerations` | node pod tolerations | [] |
102-
| `kubelet.linuxPath` | configure the kubelet path for Linux node | `/var/lib/kubelet` |
102+
| `linux.kubelet` | configure kubelet directory path on Linux agent node node | `/var/lib/kubelet` |
103+
| `linux.distro` | configure ssl certificates for different Linux distribution(available values: `debian`, `fedora`) | `debian`
103104
| `cloud` | the cloud environment the driver is running on | AzurePublicCloud |
104105
| `podAnnotations` | collection of annotations to add to all the pods | {} |
105106
| `podLabels` | collection of labels to add to all the pods | {} |
85 Bytes
Binary file not shown.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ spec:
127127
mountPath: /etc/ssl/certs
128128
readOnly: true
129129
{{- end }}
130+
{{- if eq .Values.linux.distro "fedora" }}
131+
- name: ssl
132+
mountPath: /etc/ssl/certs
133+
readOnly: true
134+
- name: ssl-pki
135+
mountPath: /etc/pki/ca-trust/extracted
136+
readOnly: true
137+
{{- end }}
130138
resources: {{- toYaml .Values.controller.resources.blob | nindent 12 }}
131139
- name: csi-resizer
132140
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
@@ -158,6 +166,14 @@ spec:
158166
hostPath:
159167
path: /etc/ssl/certs
160168
{{- end }}
169+
{{- if eq .Values.linux.distro "fedora" }}
170+
- name: ssl
171+
hostPath:
172+
path: /etc/ssl/certs
173+
- name: ssl-pki
174+
hostPath:
175+
path: /etc/pki/ca-trust/extracted
176+
{{- end }}
161177
{{- if .Values.securityContext }}
162178
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
163179
{{- end }}

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

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
- name: ADDRESS
7878
value: /csi/csi.sock
7979
- name: DRIVER_REG_SOCK_PATH
80-
value: {{ .Values.kubelet.linuxPath }}/plugins/blob.csi.azure.com/csi.sock
80+
value: {{ .Values.linux.kubelet }}/plugins/blob.csi.azure.com/csi.sock
8181
volumeMounts:
8282
- name: socket-dir
8383
mountPath: /csi
@@ -134,7 +134,7 @@ spec:
134134
volumeMounts:
135135
- mountPath: /csi
136136
name: socket-dir
137-
- mountPath: {{ .Values.kubelet.linuxPath }}/
137+
- mountPath: {{ .Values.linux.kubelet }}/
138138
mountPropagation: Bidirectional
139139
name: mountpoint-dir
140140
- mountPath: /etc/kubernetes/
@@ -149,18 +149,26 @@ spec:
149149
mountPath: /etc/ssl/certs
150150
readOnly: true
151151
{{- end }}
152+
{{- if eq .Values.linux.distro "fedora" }}
153+
- name: ssl
154+
mountPath: /etc/ssl/certs
155+
readOnly: true
156+
- name: ssl-pki
157+
mountPath: /etc/pki/ca-trust/extracted
158+
readOnly: true
159+
{{- end }}
152160
resources: {{- toYaml .Values.node.resources.blob | nindent 12 }}
153161
volumes:
154162
- hostPath:
155-
path: {{ .Values.kubelet.linuxPath }}/plugins/blob.csi.azure.com
163+
path: {{ .Values.linux.kubelet }}/plugins/blob.csi.azure.com
156164
type: DirectoryOrCreate
157165
name: socket-dir
158166
- hostPath:
159-
path: {{ .Values.kubelet.linuxPath }}/
167+
path: {{ .Values.linux.kubelet }}/
160168
type: DirectoryOrCreate
161169
name: mountpoint-dir
162170
- hostPath:
163-
path: {{ .Values.kubelet.linuxPath }}/plugins_registry/
171+
path: {{ .Values.linux.kubelet }}/plugins_registry/
164172
type: DirectoryOrCreate
165173
name: registration-dir
166174
- hostPath:
@@ -178,6 +186,14 @@ spec:
178186
hostPath:
179187
path: /etc/ssl/certs
180188
{{- end }}
189+
{{- if eq .Values.linux.distro "fedora" }}
190+
- name: ssl
191+
hostPath:
192+
path: /etc/ssl/certs
193+
- name: ssl-pki
194+
hostPath:
195+
path: /etc/pki/ca-trust/extracted
196+
{{- end }}
181197
{{- if .Values.securityContext }}
182198
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
183199
{{- end }}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ node:
101101
tolerations: []
102102
livenessProbe:
103103
healthPort: 29633
104-
kubelet:
105-
linuxPath: /var/lib/kubelet
104+
105+
linux:
106+
kubelet: /var/lib/kubelet
107+
distro: debian
106108

107109
cloud: AzurePublicCloud
108110

0 commit comments

Comments
 (0)