From 6972d673d107bce564262c41d5cb5b4ae88db084 Mon Sep 17 00:00:00 2001 From: Jeff Hemphill Date: Mon, 20 Apr 2026 13:27:31 -0700 Subject: [PATCH] [chore][PLAT-1058] Add support for extraContainers to code-executor deployment --- charts/retool/Chart.yaml | 2 +- .../templates/deployment_code_executor.yaml | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/charts/retool/Chart.yaml b/charts/retool/Chart.yaml index d3e6b9bb..2ac23c97 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.10.2 +version: 6.10.3 maintainers: - name: Retool Engineering email: engineering+helm@retool.com diff --git a/charts/retool/templates/deployment_code_executor.yaml b/charts/retool/templates/deployment_code_executor.yaml index b5ff877d..7b080207 100644 --- a/charts/retool/templates/deployment_code_executor.yaml +++ b/charts/retool/templates/deployment_code_executor.yaml @@ -61,6 +61,9 @@ spec: {{ else }} privileged: true {{ end }} + {{- if .Values.securityContext.extraContainerSecurityContext }} +{{ toYaml .Values.securityContext.extraContainerSecurityContext | indent 10 }} + {{- end }} env: - name: DEPLOYMENT_TEMPLATE_TYPE value: {{ template "retool.deploymentTemplateType" . }} @@ -115,11 +118,30 @@ spec: volumeMounts: {{- if .Values.codeExecutor.volumeMounts }} {{ toYaml .Values.codeExecutor.volumeMounts | indent 10 }} +{{- end }} +{{- if .Values.extraVolumeMounts }} +{{ toYaml .Values.extraVolumeMounts | indent 10 }} +{{- end }} +{{- range .Values.extraConfigMapMounts }} + - name: {{ .name }} + mountPath: {{ .mountPath }} + subPath: {{ .subPath }} +{{- end }} +{{- with .Values.extraContainers }} +{{ tpl . $ | indent 6 }} {{- end }} volumes: {{- if .Values.codeExecutor.volumes }} {{ toYaml .Values.codeExecutor.volumes | indent 8 }} {{- end }} +{{- range .Values.extraConfigMapMounts }} + - name: {{ .name }} + configMap: + name: {{ .configMap }} +{{- end }} +{{- if .Values.extraVolumes }} +{{ toYaml .Values.extraVolumes | indent 8 }} +{{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.image.pullSecrets | indent 8 }}