Skip to content

Commit

Permalink
simplify the expression in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
gulywwx committed Nov 23, 2024
1 parent 25a9d00 commit 0f40e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,11 @@ spec:
name: socket-dir
- mountPath: /etc/kubernetes/
name: azure-cred
{{- if eq .Values.cloud "AzureStackCloud" }}
{{- if ne .Values.linux.distro "fedora" }}
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
- name: ssl
mountPath: /etc/ssl/certs
readOnly: true
{{- end }}
{{- end }}
{{- if eq .Values.linux.distro "fedora" }}
- name: ssl
mountPath: /etc/ssl/certs
Expand All @@ -319,13 +317,11 @@ spec:
hostPath:
path: /etc/kubernetes/
type: DirectoryOrCreate
{{- if eq .Values.cloud "AzureStackCloud" }}
{{- if ne .Values.linux.distro "fedora" }}
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
- name: ssl
hostPath:
path: /etc/ssl/certs
{{- end }}
{{- end }}
{{- if eq .Values.linux.distro "fedora" }}
- name: ssl
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,11 @@ spec:
name: sys-devices-dir
- mountPath: /sys/class/
name: sys-class
{{- if eq .Values.cloud "AzureStackCloud" }}
{{- if ne .Values.linux.distro "fedora" }}
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
- name: ssl
mountPath: /etc/ssl/certs
readOnly: true
{{- end }}
{{- end }}
{{- if eq .Values.linux.distro "fedora" }}
- name: ssl
mountPath: /etc/ssl/certs
Expand Down Expand Up @@ -256,13 +254,11 @@ spec:
path: /sys/class/
type: Directory
name: sys-class
{{- if eq .Values.cloud "AzureStackCloud" }}
{{- if ne .Values.linux.distro "fedora" }}
{{- if and (eq .Values.cloud "AzureStackCloud") (ne .Values.linux.distro "fedora") }}
- name: ssl
hostPath:
path: /etc/ssl/certs
{{- end }}
{{- end }}
{{- if eq .Values.linux.distro "fedora" }}
- name: ssl
hostPath:
Expand Down

0 comments on commit 0f40e66

Please sign in to comment.