Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: migration job for existing db (#6792)

Steven Crakee74b35fe7098
diff --git a/deploy/charts/litellm-helm/templates/migrations-job.yaml b/deploy/charts/litellm-helm/templates/migrations-job.yaml
index 010d2d1b55f..8dd184b1a11 100644
--- a/deploy/charts/litellm-helm/templates/migrations-job.yaml
+++ b/deploy/charts/litellm-helm/templates/migrations-job.yaml
@@ -18,6 +18,20 @@ spec:
workingDir: "/app"
env:
{{- if .Values.db.useExisting }}
+ - name: DATABASE_USERNAME
+ valueFrom:
+ secretKeyRef:
+ name: {{ .Values.db.secret.name }}
+ key: {{ .Values.db.secret.usernameKey }}
+ - name: DATABASE_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: {{ .Values.db.secret.name }}
+ key: {{ .Values.db.secret.passwordKey }}
+ - name: DATABASE_HOST
+ value: {{ .Values.db.endpoint }}
+ - name: DATABASE_NAME
+ value: {{ .Values.db.database }}
- name: DATABASE_URL
value: {{ .Values.db.url | quote }}
{{- else }}