Skip to content

Commit 7691e0e

Browse files
committed
fix: incorrect affinity chart config
1 parent 3cf10b3 commit 7691e0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
-1 Bytes
Binary file not shown.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ spec:
2525
{{- end }}
2626
spec:
2727
# runOnControlPlane=true or runOnMaster=true only takes effect if affinity is not set
28-
{{- if contains (tpl "{{ .Values.controller.affinity }}" .) "nodeSelectorTerms" }}
28+
{{- if tpl "{{ .Values.controller.affinity }}" . | contains "nodeSelectorTerms" }}
2929
{{- with .Values.controller.affinity }}
3030
affinity:
31-
{{ toYaml . | indent 8 }}
31+
{{ toYaml . | indent 8 }}
3232
{{- end }}
3333
{{- else if or .Values.controller.runOnControlPlane .Values.controller.runOnMaster}}
3434
affinity:

0 commit comments

Comments
 (0)