From 607e019f185b5a99e28f93e8c99117e91536e6a0 Mon Sep 17 00:00:00 2001 From: Roland Schlaefli Date: Fri, 3 Jul 2026 10:58:54 +0200 Subject: [PATCH] fix(codeapi-chart): support sandbox runner scale to zero --- helm/codeapi/templates/worker-sandbox-deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/codeapi/templates/worker-sandbox-deployment.yaml b/helm/codeapi/templates/worker-sandbox-deployment.yaml index 079b9bf..f1dee96 100644 --- a/helm/codeapi/templates/worker-sandbox-deployment.yaml +++ b/helm/codeapi/templates/worker-sandbox-deployment.yaml @@ -119,6 +119,7 @@ spec: - name: wait-for-redis image: busybox:1.36.1 command: ['sh', '-c', 'until nc -z {{ include "codeapi.redis.host" . }} {{ include "codeapi.redis.port" . }}; do echo waiting for redis; sleep 2; done'] + {{- if not .Values.workerSandbox.sandboxRunner.externalAutoscaler }} - name: wait-for-sandbox-runner image: busybox:1.36.1 {{- if .Values.workerSandbox.sandboxRunner.namespaceOverride }} @@ -126,6 +127,7 @@ spec: {{- else }} command: ['sh', '-c', 'until nc -z {{ include "codeapi.fullname" . }}-sandbox-runner {{ .Values.workerSandbox.sandbox.port }}; do echo waiting for sandbox-runner; sleep 2; done'] {{- end }} + {{- end }} containers: - name: service-worker image: "{{ .Values.workerSandbox.workerImage.repository }}:{{ .Values.workerSandbox.workerImage.tag }}"