Skip to content

Commit

Permalink
fix: incorrect affinity chart config
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Feb 10, 2025
1 parent 0ed5640 commit 89a5c0c
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 89a5c0c

Please sign in to comment.