From d33ec5e38848d323625f5c64f3987d4bce384af6 Mon Sep 17 00:00:00 2001 From: Viktor Kuzmin Date: Fri, 29 Mar 2024 20:48:49 +0200 Subject: [PATCH] Allow to set nodeAffinity for controller --- deploy/helm/seaweedfs-csi-driver/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/helm/seaweedfs-csi-driver/templates/deployment.yaml b/deploy/helm/seaweedfs-csi-driver/templates/deployment.yaml index edbc143..b955597 100644 --- a/deploy/helm/seaweedfs-csi-driver/templates/deployment.yaml +++ b/deploy/helm/seaweedfs-csi-driver/templates/deployment.yaml @@ -16,6 +16,9 @@ spec: priorityClassName: system-cluster-critical serviceAccountName: {{ template "seaweedfs-csi-driver.name" . }}-controller-sa affinity: + {{- if and .Values.controller.affinity .Values.controller.affinity.nodeAffinity }} + nodeAffinity: {{ toYaml .Values.controller.affinity.nodeAffinity | nindent 10 }} + {{- end }} {{- if and .Values.controller.affinity .Values.controller.affinity.podAffinity }} podAffinity: {{ toYaml .Values.controller.affinity.podAffinity | nindent 10 }} {{- end }}