Skip to content

Commit 6922936

Browse files
authored
Fix Affinity indent error
Moving affinity element to spec level instead of nodeSelector
1 parent 4f479b0 commit 6922936

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ spec:
2525
{{ toYaml .Values.podAnnotations | indent 8 }}
2626
{{- end }}
2727
spec:
28+
{{- with .Values.node.affinity }}
29+
affinity:
30+
{{ toYaml . | indent 8 }}
31+
{{- end }}
2832
hostNetwork: true
2933
dnsPolicy: {{ .Values.linux.dnsPolicy }}
3034
serviceAccountName: csi-smb-node-sa
@@ -33,9 +37,6 @@ spec:
3337
{{- with .Values.node.nodeSelector }}
3438
{{ toYaml . | indent 8 }}
3539
{{- end }}
36-
{{- if .Values.node.affinity }}
37-
{{- toYaml .Values.node.affinity | nindent 8 }}
38-
{{- end }}
3940
priorityClassName: {{ .Values.priorityClassName | quote }}
4041
{{- with .Values.linux.tolerations }}
4142
tolerations:

0 commit comments

Comments
 (0)