Skip to content

Commit cc1bfb4

Browse files
committed
fix: affinity indent error
1 parent 45b8cc4 commit cc1bfb4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed
-16 Bytes
Binary file not shown.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ 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
2835
serviceAccountName: {{ .Values.serviceAccount.node }}
2936
{{- include "smb.pullSecrets" . | indent 6 }}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ spec:
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)