Skip to content

Commit

Permalink
Merge pull request #2374 from kubernetes-sigs/fix-affinity-chart
Browse files Browse the repository at this point in the history
fix: incorrect affinity chart config
  • Loading branch information
andyzhangx authored Feb 10, 2025
2 parents 0ed5640 + 89a5c0c commit ba193b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified charts/latest/azurefile-csi-driver-v0.0.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
# runOnControlPlane=true or runOnMaster=true only takes effect if affinity is not set
{{- if contains (tpl "{{ .Values.controller.affinity }}" .) "nodeSelectorTerms" }}
{{- if tpl "{{ .Values.controller.affinity }}" . | contains "nodeSelectorTerms" }}
{{- with .Values.controller.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- else if or .Values.controller.runOnControlPlane .Values.controller.runOnMaster}}
affinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ spec:
nodeSelector:
kubernetes.io/os: linux
# runOnControlPlane=true or runOnMaster=true only takes effect if affinity is not set
{{- if contains (tpl "{{ .Values.controller.affinity }}" .) "nodeSelectorTerms" }}
{{- if tpl "{{ .Values.controller.affinity }}" . | contains "nodeSelectorTerms" }}
{{- with .Values.controller.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- else if or .Values.controller.runOnControlPlane .Values.controller.runOnMaster}}
affinity:
Expand Down

0 comments on commit ba193b2

Please sign in to comment.