From dbc8f5a93731d325409fcd9f8f2050de71ce71f3 Mon Sep 17 00:00:00 2001 From: Yassin Kortam Date: Tue, 5 May 2026 16:58:53 -0700 Subject: [PATCH] helm: skip proxy startup prisma db push when migrations Job is enabled (#27200) Co-authored-by: Yassin Kortam --- deploy/charts/litellm-helm/templates/deployment.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deploy/charts/litellm-helm/templates/deployment.yaml b/deploy/charts/litellm-helm/templates/deployment.yaml index c25c62cc40..a9b41e0d8e 100644 --- a/deploy/charts/litellm-helm/templates/deployment.yaml +++ b/deploy/charts/litellm-helm/templates/deployment.yaml @@ -138,6 +138,16 @@ spec: {{- with .Values.extraEnvVars }} {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.migrationJob.enabled }} + # Schema updates are owned by the dedicated migrations Job; skip + # the proxy's startup `prisma db push` so N replicas don't race + # one DB on every rollout. Placed last (after envVars and + # extraEnvVars) so this override can't be silently shadowed by a + # user-supplied DISABLE_SCHEMA_UPDATE under last-wins duplicate-env + # semantics — same pattern the migrations Job uses. + - name: DISABLE_SCHEMA_UPDATE + value: "true" + {{- end }} envFrom: {{- range .Values.environmentSecrets }} - secretRef: