Skip to content

fix: helm migration job not running schema update #12809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

huetterma
Copy link

@huetterma huetterma commented Jul 21, 2025

Title

The order of DISABLE_SCHEMA_UPDATE is important here, k8s will take the last value as truth. Push down to be sure schema update is done by migration job as best practices suggest to set this for litellm pods and will now be included into the migration job by #12591

https://docs.litellm.ai/docs/proxy/prod#7-use-helm-presync-hook-for-database-migrations-beta

When a key exists in multiple sources, the value associated with the last source will take precedence.
https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables

Relevant issues

#12591

Pre-Submission checklist

  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix
🚄 Infrastructure

Changes

Push DISABLE_SCHEMA_UPDATE: false to the bottom of env vars to ensure it is always false for the migration job and schema is being updated

The order of the specification is important here, k8s will take the last value as truth. Push down to be sure schema update is done by migration job
Copy link

vercel bot commented Jul 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2025 10:17am

@CLAassistant
Copy link

CLAassistant commented Jul 21, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants