From 07d7ac3ede8949981ffe695e54cc453461e6fa69 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 12 Nov 2024 12:13:42 -0800 Subject: [PATCH] fix db migration helm hook --- deploy/charts/litellm-helm/templates/migrations-job.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy/charts/litellm-helm/templates/migrations-job.yaml b/deploy/charts/litellm-helm/templates/migrations-job.yaml index 40be5e502..35e53c606 100644 --- a/deploy/charts/litellm-helm/templates/migrations-job.yaml +++ b/deploy/charts/litellm-helm/templates/migrations-job.yaml @@ -13,7 +13,12 @@ spec: containers: - name: prisma-migrations image: "ghcr.io/berriai/litellm:main-stable" - command: ["python", "/litellm/proxy/prisma_migration.py"] + command: ["/bin/sh", "-c"] + args: + - | + pwd + ls -la + python ../../../litellm/proxy/prisma_migration.py env: {{- if .Values.db.deployStandalone }} - name: DATABASE_URL