Skip to content

Commit 38e03c2

Browse files
committed
fix: incorrect affinity chart config in v1.17.0 chart config
1 parent 7691e0e commit 38e03c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

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

charts/v1.17.0/csi-driver-smb/templates/csi-smb-controller.yaml

Lines changed: 2 additions & 2 deletions
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)