From 3946ffb6e8664c152a589f37dd8c0feb4dccb6f8 Mon Sep 17 00:00:00 2001 From: "Ignaz \"Ian\" Kraft" Date: Sat, 12 Sep 2026 20:26:48 +0200 Subject: [PATCH] fix: helm egress deployment getting stuck on install (#176) * fix: helm egress deployment getting stuck on install * only wait for redis if the ledger is required * Update helm/codeapi/templates/egress-gateway-deployment.yaml Co-authored-by: Danny Avila --------- Co-authored-by: Danny Avila --- helm/codeapi/templates/egress-gateway-deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm/codeapi/templates/egress-gateway-deployment.yaml b/helm/codeapi/templates/egress-gateway-deployment.yaml index 49c865f0..941844ce 100644 --- a/helm/codeapi/templates/egress-gateway-deployment.yaml +++ b/helm/codeapi/templates/egress-gateway-deployment.yaml @@ -24,6 +24,12 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if or .Values.egressGrant.ledgerRequired .Values.hardenedSandboxMode }} + initContainers: + - 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'] + {{- end }} containers: - name: egress-gateway image: "{{ .Values.egressGateway.image.repository }}:{{ .Values.egressGateway.image.tag }}"