Skip to content

Commit 2457c6d

Browse files
authored
Merge pull request #494 from andyzhangx/chart-serviceAccount-fix-v1.7
fix: node.serviceAccount setting in chart config on 1.7.0
2 parents ad56e3f + cc1bfb4 commit 2457c6d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed
-19 Bytes
Binary file not shown.

charts/v1.7.0/csi-driver-smb/templates/csi-smb-node-windows.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ spec:
2424
{{- end }}
2525
nodeSelector:
2626
kubernetes.io/os: windows
27+
{{- with .Values.node.nodeSelector }}
28+
{{ toYaml . | indent 8 }}
29+
{{- end }}
30+
{{- with .Values.node.affinity }}
31+
affinity:
32+
{{ toYaml . | indent 8 }}
33+
{{- end }}
2734
priorityClassName: system-node-critical
28-
serviceAccountName: csi-smb-node-sa
35+
serviceAccountName: {{ .Values.serviceAccount.node }}
2936
{{- include "smb.pullSecrets" . | indent 6 }}
3037
containers:
3138
- name: liveness-probe

charts/v1.7.0/csi-driver-smb/templates/csi-smb-node.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ spec:
2727
spec:
2828
hostNetwork: true
2929
dnsPolicy: {{ .Values.linux.dnsPolicy }}
30-
serviceAccountName: csi-smb-node-sa
30+
serviceAccountName: {{ .Values.serviceAccount.node }}
3131
nodeSelector:
3232
kubernetes.io/os: linux
3333
{{- with .Values.node.nodeSelector }}
3434
{{ toYaml . | indent 8 }}
3535
{{- end }}
36-
{{- if .Values.node.affinity }}
37-
{{- toYaml .Values.node.affinity | nindent 8 }}
38-
{{- end }}
36+
{{- with .Values.node.affinity }}
37+
affinity:
38+
{{ toYaml . | indent 8 }}
39+
{{- end }}
3940
priorityClassName: {{ .Values.priorityClassName | quote }}
4041
{{- with .Values.linux.tolerations }}
4142
tolerations:

0 commit comments

Comments
 (0)