Skip to content

Commit 42516f9

Browse files
committed
Add nodeSelectors to core workloads
Signed-off-by: Gudynin Danila <dggitdev@bk.ru>
1 parent da209cf commit 42516f9

13 files changed

+72
-0
lines changed

charts/fluid/templates/controller/alluxioruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: alluxioruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.alluxio.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.alluxio.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.alluxio.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.alluxio.tolerations | indent 6}}

charts/fluid/templates/controller/dataset_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ spec:
2828
{{- end }}
2929
serviceAccountName: dataset-controller
3030
{{ include "fluid.controlplane.affinity" . | nindent 6}}
31+
{{- if .Values.dataset.nodeSelector }}
32+
nodeSelector:
33+
{{ toYaml .Values.dataset.nodeSelector | indent 8}}
34+
{{- end }}
3135
{{- if .Values.dataset.tolerations }}
3236
tolerations:
3337
{{ toYaml .Values.dataset.tolerations | indent 6}}

charts/fluid/templates/controller/efcruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: efcruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.efc.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.efc.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.efc.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.efc.tolerations | indent 6 }}

charts/fluid/templates/controller/fluidapp_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ spec:
2626
{{- end }}
2727
serviceAccountName: fluidapp-controller
2828
{{ include "fluid.controlplane.affinity" . | nindent 6}}
29+
{{- if .Values.fluidapp.nodeSelector }}
30+
nodeSelector:
31+
{{ toYaml .Values.fluidapp.nodeSelector | indent 8 }}
32+
{{- end }}
2933
{{- if .Values.fluidapp.tolerations }}
3034
tolerations:
3135
{{ toYaml .Values.fluidapp.tolerations | indent 6 }}

charts/fluid/templates/controller/goosefsruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: goosefsruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.goosefs.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.goosefs.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.goosefs.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.goosefs.tolerations | indent 6 }}

charts/fluid/templates/controller/jindoruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: jindoruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.jindo.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.jindo.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.jindo.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.jindo.tolerations | indent 6 }}

charts/fluid/templates/controller/juicefsruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: juicefsruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.juicefs.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.juicefs.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.juicefs.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.juicefs.tolerations | indent 6 }}

charts/fluid/templates/controller/thinruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: thinruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.thin.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.thin.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.thin.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.thin.tolerations | indent 6 }}

charts/fluid/templates/controller/vineyardruntime_controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
{{- end }}
3131
serviceAccountName: vineyardruntime-controller
3232
{{ include "fluid.controlplane.affinity" . | nindent 6}}
33+
{{- if .Values.runtime.vineyard.nodeSelector }}
34+
nodeSelector:
35+
{{ toYaml .Values.runtime.vineyard.nodeSelector | indent 8 }}
36+
{{- end }}
3337
{{- if .Values.runtime.vineyard.tolerations }}
3438
tolerations:
3539
{{ toYaml .Values.runtime.vineyard.tolerations | indent 6 }}

charts/fluid/templates/csi/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ spec:
2020
{{- toYaml . | nindent 8 }}
2121
{{- end }}
2222
serviceAccountName: fluid-csi
23+
{{- if .Values.csi.nodeSelector }}
24+
nodeSelector:
25+
{{ toYaml .Values.csi.nodeSelector | indent 8 }}
26+
{{- end }}
2327
{{- if .Values.csi.tolerations }}
2428
tolerations:
2529
{{ toYaml .Values.csi.tolerations | indent 6 }}

0 commit comments

Comments
 (0)