Skip to content

Commit 69414f2

Browse files
committed
fix: avoid duplicate ssl mounts on Redhat in AzureStack environment
1 parent d421224 commit 69414f2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
-1.56 KB
Binary file not shown.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ spec:
288288
name: socket-dir
289289
- mountPath: /etc/kubernetes/
290290
name: azure-cred
291-
{{- if eq .Values.cloud "AzureStackCloud" }}
291+
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
292292
- name: ssl
293293
mountPath: /etc/ssl/certs
294294
readOnly: true
@@ -313,7 +313,7 @@ spec:
313313
hostPath:
314314
path: /etc/kubernetes/
315315
type: DirectoryOrCreate
316-
{{- if eq .Values.cloud "AzureStackCloud" }}
316+
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
317317
- name: ssl
318318
hostPath:
319319
path: /etc/ssl/certs

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ spec:
211211
name: sys-devices-dir
212212
- mountPath: /sys/class/
213213
name: sys-class
214-
{{- if eq .Values.cloud "AzureStackCloud" }}
214+
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
215215
- name: ssl
216216
mountPath: /etc/ssl/certs
217217
readOnly: true
@@ -254,7 +254,7 @@ spec:
254254
path: /sys/class/
255255
type: Directory
256256
name: sys-class
257-
{{- if eq .Values.cloud "AzureStackCloud" }}
257+
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
258258
- name: ssl
259259
hostPath:
260260
path: /etc/ssl/certs

0 commit comments

Comments
 (0)