Skip to content

Commit b92bd6f

Browse files
authored
Merge pull request #1828 from andyzhangx/fix-affinity-chart-1.25
[release-1.25] fix: incorrect affinity chart config
2 parents b94801d + 5d6c8d3 commit b92bd6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

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

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ spec:
3737
nodeSelector:
3838
kubernetes.io/os: linux
3939
# runOnControlPlane=true or runOnMaster=true only takes effect if affinity is not set
40-
{{- if contains (tpl "{{ .Values.controller.affinity }}" .) "nodeSelectorTerms" }}
40+
{{- if tpl "{{ .Values.controller.affinity }}" . | contains "nodeSelectorTerms" }}
4141
{{- with .Values.controller.affinity }}
4242
affinity:
43-
{{ toYaml . | indent 8 }}
43+
{{ toYaml . | indent 8 }}
4444
{{- end }}
4545
{{- else if or .Values.controller.runOnControlPlane .Values.controller.runOnMaster}}
4646
affinity:

0 commit comments

Comments
 (0)