From b1e77ebce32c18801eb224e98f24f4f048ea175b Mon Sep 17 00:00:00 2001 From: Avi Moondra Date: Mon, 12 Feb 2024 13:18:59 -0500 Subject: [PATCH] add DEPLOYMENT_TEMPLATE_TYPE and VERSION to templates --- charts/retool/Chart.yaml | 2 +- charts/retool/templates/deployment_backend.yaml | 4 ++++ charts/retool/templates/deployment_code_executor.yaml | 4 ++++ charts/retool/templates/deployment_jobs.yaml | 4 ++++ charts/retool/templates/deployment_workflows.yaml | 4 ++++ charts/retool/templates/deployment_workflows_worker.yaml | 4 ++++ 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/charts/retool/Chart.yaml b/charts/retool/Chart.yaml index 6d596744..fd190c72 100644 --- a/charts/retool/Chart.yaml +++ b/charts/retool/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: retool description: A Helm chart for Kubernetes type: application -version: 6.0.15 +version: 6.0.16 maintainers: - name: Retool Engineering email: engineering+helm@retool.com diff --git a/charts/retool/templates/deployment_backend.yaml b/charts/retool/templates/deployment_backend.yaml index fd998c52..03adb84f 100644 --- a/charts/retool/templates/deployment_backend.yaml +++ b/charts/retool/templates/deployment_backend.yaml @@ -65,6 +65,10 @@ spec: {{ toYaml .Values.commandline.args | indent 10 }} {{- end }} env: + - name: DEPLOYMENT_TEMPLATE_TYPE + value: 'k8s-helm' + - name: DEPLOYMENT_TEMPLATE_VERSION + value: {{ .Chart.Version }} - name: NODE_ENV value: production {{- if include "retool.jobRunner.enabled" . }} diff --git a/charts/retool/templates/deployment_code_executor.yaml b/charts/retool/templates/deployment_code_executor.yaml index 8dcb0219..c6e06984 100644 --- a/charts/retool/templates/deployment_code_executor.yaml +++ b/charts/retool/templates/deployment_code_executor.yaml @@ -55,6 +55,10 @@ spec: securityContext: privileged: true env: + - name: DEPLOYMENT_TEMPLATE_TYPE + value: 'k8s-helm' + - name: DEPLOYMENT_TEMPLATE_VERSION + value: {{ .Chart.Version }} - name: NODE_ENV value: production - name: NODE_OPTIONS diff --git a/charts/retool/templates/deployment_jobs.yaml b/charts/retool/templates/deployment_jobs.yaml index 8d7a9772..24f12f7b 100644 --- a/charts/retool/templates/deployment_jobs.yaml +++ b/charts/retool/templates/deployment_jobs.yaml @@ -58,6 +58,10 @@ spec: {{ toYaml .Values.commandline.args | indent 10 }} {{- end }} env: + - name: DEPLOYMENT_TEMPLATE_TYPE + value: 'k8s-helm' + - name: DEPLOYMENT_TEMPLATE_VERSION + value: {{ .Chart.Version }} - name: NODE_ENV value: production - name: SERVICE_TYPE diff --git a/charts/retool/templates/deployment_workflows.yaml b/charts/retool/templates/deployment_workflows.yaml index 5e079d8a..6a71b6c6 100644 --- a/charts/retool/templates/deployment_workflows.yaml +++ b/charts/retool/templates/deployment_workflows.yaml @@ -57,6 +57,10 @@ spec: {{ toYaml .Values.commandline.args | indent 10 }} {{- end }} env: + - name: DEPLOYMENT_TEMPLATE_TYPE + value: 'k8s-helm' + - name: DEPLOYMENT_TEMPLATE_VERSION + value: {{ .Chart.Version }} - name: NODE_ENV value: production {{ if $.Values.dbconnector.java.enabled }} diff --git a/charts/retool/templates/deployment_workflows_worker.yaml b/charts/retool/templates/deployment_workflows_worker.yaml index 06ac3c2f..a41bd2ea 100644 --- a/charts/retool/templates/deployment_workflows_worker.yaml +++ b/charts/retool/templates/deployment_workflows_worker.yaml @@ -63,6 +63,10 @@ spec: {{ toYaml .Values.commandline.args | indent 10 }} {{- end }} env: + - name: DEPLOYMENT_TEMPLATE_TYPE + value: 'k8s-helm' + - name: DEPLOYMENT_TEMPLATE_VERSION + value: {{ .Chart.Version }} - name: NODE_ENV value: production - name: NODE_OPTIONS