From cde65a77de8faffd403b9a68ddc9e115d478252a Mon Sep 17 00:00:00 2001 From: Vinoth Kirubakaran Date: Wed, 15 Mar 2023 21:32:32 +0530 Subject: [PATCH] Ability to configure schedulerName for helm charts (#10018) * Update minio-service-deployment.yaml * Update redis-service-deployment.yaml * Update couchdb-backup.yaml * Update proxy-service-deployment.yaml * Update app-service-deployment.yaml * Update worker-service-deployment.yaml * Update app-service-deployment.yaml * Update couchdb-backup.yaml * Update minio-service-deployment.yaml * Update proxy-service-deployment.yaml * Update redis-service-deployment.yaml * Update worker-service-deployment.yaml --- charts/budibase/templates/app-service-deployment.yaml | 3 +++ charts/budibase/templates/couchdb-backup.yaml | 3 +++ charts/budibase/templates/minio-service-deployment.yaml | 3 +++ charts/budibase/templates/proxy-service-deployment.yaml | 3 +++ charts/budibase/templates/redis-service-deployment.yaml | 3 +++ charts/budibase/templates/worker-service-deployment.yaml | 3 +++ 6 files changed, 18 insertions(+) diff --git a/charts/budibase/templates/app-service-deployment.yaml b/charts/budibase/templates/app-service-deployment.yaml index 41b0dc48c9..9ff7dc1ddc 100644 --- a/charts/budibase/templates/app-service-deployment.yaml +++ b/charts/budibase/templates/app-service-deployment.yaml @@ -232,6 +232,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{ end }} {{ if .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 6 }} diff --git a/charts/budibase/templates/couchdb-backup.yaml b/charts/budibase/templates/couchdb-backup.yaml index 68e5eab617..7396f97476 100644 --- a/charts/budibase/templates/couchdb-backup.yaml +++ b/charts/budibase/templates/couchdb-backup.yaml @@ -50,5 +50,8 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{ end }} status: {} {{- end }} diff --git a/charts/budibase/templates/minio-service-deployment.yaml b/charts/budibase/templates/minio-service-deployment.yaml index d0a367653d..41af2624bf 100644 --- a/charts/budibase/templates/minio-service-deployment.yaml +++ b/charts/budibase/templates/minio-service-deployment.yaml @@ -72,6 +72,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{ end }} {{ if .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 6 }} diff --git a/charts/budibase/templates/proxy-service-deployment.yaml b/charts/budibase/templates/proxy-service-deployment.yaml index 0dea38fcbd..42af458a8c 100644 --- a/charts/budibase/templates/proxy-service-deployment.yaml +++ b/charts/budibase/templates/proxy-service-deployment.yaml @@ -78,6 +78,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{ end }} {{ if .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 6 }} diff --git a/charts/budibase/templates/redis-service-deployment.yaml b/charts/budibase/templates/redis-service-deployment.yaml index 5916c6d3f9..9b39d14291 100644 --- a/charts/budibase/templates/redis-service-deployment.yaml +++ b/charts/budibase/templates/redis-service-deployment.yaml @@ -50,6 +50,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{ end }} {{ if .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 6 }} diff --git a/charts/budibase/templates/worker-service-deployment.yaml b/charts/budibase/templates/worker-service-deployment.yaml index 7886d55b28..f998e5dfb9 100644 --- a/charts/budibase/templates/worker-service-deployment.yaml +++ b/charts/budibase/templates/worker-service-deployment.yaml @@ -222,6 +222,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{ end }} {{ if .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 6 }}