From fe04ff398eb5125919a8f99dd12cfce79b24286a Mon Sep 17 00:00:00 2001 From: Davide Date: Tue, 1 Aug 2023 18:34:30 +0200 Subject: [PATCH] add nodeSelector support --- helm/install/templates/manager.yaml | 4 ++++ helm/install/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/helm/install/templates/manager.yaml b/helm/install/templates/manager.yaml index a7820173..9e2d4c07 100644 --- a/helm/install/templates/manager.yaml +++ b/helm/install/templates/manager.yaml @@ -20,6 +20,10 @@ spec: spec: {{- include "install.imagePullSecrets" . | indent 6 }} serviceAccountName: {{ include "install.serviceAccountName" . }} + {{- if .Values.nodeSelector }} + nodeSelector: + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} containers: - name: operator image: {{ required ".Values.controllerImages.cluster is required" .Values.controllerImages.cluster | quote }} diff --git a/helm/install/values.yaml b/helm/install/values.yaml index 92eb3eb1..4fe82d82 100644 --- a/helm/install/values.yaml +++ b/helm/install/values.yaml @@ -50,3 +50,6 @@ resources: # postgres-operator.crunchydata.com, will cause an error # customPodLabels: # example.com: custom-label + +# Node labels for pod assignment +nodeSelector: {}