From d48362017fe77a4da6b2a33f090bba2cb2ee058d Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 19 Dec 2023 15:07:50 +0000 Subject: [PATCH] Allow the specifying of custom command and args values in Helm chart. --- charts/budibase/templates/app-service-deployment.yaml | 8 ++++++++ .../templates/automation-worker-service-deployment.yaml | 8 ++++++++ charts/budibase/templates/proxy-service-deployment.yaml | 8 ++++++++ charts/budibase/templates/worker-service-deployment.yaml | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/charts/budibase/templates/app-service-deployment.yaml b/charts/budibase/templates/app-service-deployment.yaml index 9fb435c2a3..9ed863a611 100644 --- a/charts/budibase/templates/app-service-deployment.yaml +++ b/charts/budibase/templates/app-service-deployment.yaml @@ -244,4 +244,12 @@ spec: {{ end }} restartPolicy: Always serviceAccountName: "" + {{ if .Values.services.apps.command }} + command: + {{- toYaml .Values.services.apps.command | nindent 8 }} + {{ end }} + {{ if .Values.services.apps.args }} + args: + {{- toYaml .Values.services.apps.args | nindent 8 }} + {{ end }} status: {} diff --git a/charts/budibase/templates/automation-worker-service-deployment.yaml b/charts/budibase/templates/automation-worker-service-deployment.yaml index 46be6a4435..6032f33bed 100644 --- a/charts/budibase/templates/automation-worker-service-deployment.yaml +++ b/charts/budibase/templates/automation-worker-service-deployment.yaml @@ -244,5 +244,13 @@ spec: {{ end }} restartPolicy: Always serviceAccountName: "" + {{ if .Values.services.automationWorkers.command }}} + command: + {{- toYaml .Values.services.automationWorkers.command | nindent 8 }} + {{ end }} + {{ if .Values.services.automationWorkers.args }} + args: + {{- toYaml .Values.services.automationWorkers.args | nindent 8 }} + {{ end }} status: {} {{- end }} \ No newline at end of file diff --git a/charts/budibase/templates/proxy-service-deployment.yaml b/charts/budibase/templates/proxy-service-deployment.yaml index 706e9b4b73..2e6217008b 100644 --- a/charts/budibase/templates/proxy-service-deployment.yaml +++ b/charts/budibase/templates/proxy-service-deployment.yaml @@ -100,5 +100,13 @@ spec: {{ end }} restartPolicy: Always serviceAccountName: "" + {{ if .Values.services.proxy.command }} + command: + {{- toYaml .Values.services.proxy.command | nindent 8 }} + {{ end }} + {{ if .Values.services.proxy.args }} + args: + {{- toYaml .Values.services.proxy.args | nindent 8 }} + {{ end }} volumes: status: {} diff --git a/charts/budibase/templates/worker-service-deployment.yaml b/charts/budibase/templates/worker-service-deployment.yaml index 1d90aaf954..32ffb46a90 100644 --- a/charts/budibase/templates/worker-service-deployment.yaml +++ b/charts/budibase/templates/worker-service-deployment.yaml @@ -230,4 +230,12 @@ spec: {{ end }} restartPolicy: Always serviceAccountName: "" + {{ if .Values.services.worker.command }} + command: + {{- toYaml .Values.services.worker.command | nindent 8 }} + {{ end }} + {{ if .Values.services.worker.args }} + args: + {{- toYaml .Values.services.worker.args | nindent 8 }} + {{ end }} status: {}