Repository navigation
fix(helm): default litellm-helm to the ghcr.io/berriai/litellm image - #37491
Conversation
|
|
Greptile SummaryThe PR changes the Helm chart’s default image repository to the canonical GHCR LiteLLM image and increments the chart patch version.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| helm/litellm-helm/Chart.yaml | Bumps the chart patch version for the default-image correction. |
| helm/litellm-helm/values.yaml | Changes the default repository to ghcr.io/berriai/litellm and accurately describes its bundled Prisma tooling. |
| helm/litellm-helm/README.md | Aligns the packaged chart’s values table with the new runtime default. |
| helm/litellm-helm/tests/deployment_tests.yaml | Updates deployment and templated-container expectations to the canonical repository. |
| helm/litellm-helm/tests/migrations-job_tests.yaml | Updates migration-job templating expectations to the canonical repository. |
Reviews (2): Last reviewed commit: "fix(helm): default litellm-helm to the g..." | Re-trigger Greptile
The chart shipped ghcr.io/berriai/litellm-database as its image default, with a comment offering it as the "optimized image with database". That distinction no longer exists: Dockerfile and docker/Dockerfile.database differ only in comment text and one builder-stage apk package, and both published images bake the prisma CLI, engines, schema.prisma and prisma_migration.py into /app, so either one runs the migrations job. Point the default at the canonical image the release notes, the cosign verification instructions and the chart's own README already name, and update the chart's tests and README so nothing still refers to the legacy repository.
c696e08 to
78fe47a
Compare
|
@greptileai please review the current head 78fe47a. Both findings answered inline, with the reasoning in the description's Review notes section. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
tin-berri
left a comment
There was a problem hiding this comment.
LGTM — small, well-evidenced fix. The claim that litellm and litellm-database are interchangeable is backed by a real byte-level image diff (only builder-stage rust and comment text differ; 21 layers, first 11 byte-identical), and by an actual kind-cluster before/after install proving both images produce an identical Postgres schema (65 tables) and a working end-to-end request through the new default.
- README/cosign docs already documented
litellmas the default, so this also fixes a pre-existing docs/values.yaml mismatch, not just a preference change. - Tests updated across
deployment_tests.yamlandmigrations-job_tests.yamlto match the new default, plus a mutation check showing the updated assertion actually fails against the old default (not a vacuously-passing test). - Caveats section is honest about scope:
litellm-databasestays published, and explicitimage.repositoryoverrides are unaffected — no backward-compat break for anyone already pinned. - CI green.
TLDR
Problem this solves:
litellm-databaserepositoryghcr.io/berriai/litellmlitellmHow it solves it:
image.repositoryatghcr.io/berriai/litellmUser Flow
Before: a platform engineer installing the chart gets an image the project's own release notes never mention, so they cannot verify what they are running
helm install litellm oci://ghcr.io/berriai/litellm-helmwith a Postgres endpoint and noimage.repositoryoverrideghcr.io/berriai/litellm-database:v1.85.1image.repositorydefault asberriai/litellm, and it disagrees with what is runningcosign verifycommand namesghcr.io/berriai/litellm, which is not the image they pulledAfter: the same install runs the image the docs describe, so verification and the README line up
helm installwith noimage.repositoryoverrideghcr.io/berriai/litellm:v1.85.1cosign verifycommand from the release notes names the image they pulledimage.repositorytoghcr.io/berriai/litellm-databasekeeps working, since that repository is still publishedRelevant issues
Linear ticket
Resolves LIT-5814
Pre-Submission checklist
@greptileaito re-request a review after pushing changes)Why the two images are interchangeable
Dockerfileanddocker/Dockerfile.databasediffer only in comment text and one builder-stageapkpackage:rustis a builder-stage compile dependency and does not reach the runtime layer. Both images bake the prisma CLI and engines,schema.prisma, andlitellm/proxy/prisma_migration.py, which is the file the migrations Job executes.Reading both manifests and config blobs straight off GHCR at
v1.97.0,linux/amd64, they agree on entrypoint, working dir, prisma configuration and layer count, and the first 11 layer digests are byte-identical:Three other things already point at the plain image. The chart README documents the
image.repositorydefault asberriai/litellm, sovalues.yamlcontradicted the table published beside it..github/workflows/create-release.ymlpublishescosign verifyinstructions forghcr.io/berriai/litellmonly. And the Grype image scan buildsDockerfileanddocker/Dockerfile.non_root, whiledocker/Dockerfile.databaseis built only by CircleCI'sbuild_docker_database_imagefor the bad-DATABASE_URLtest, andgrep -c grype .circleci/config.ymlreturns 0.Review notes
Greptile filed two P2s on
78fe47a34f's predecessor. One taken, one rebuttedTaken, "avoid maintenance-sensitive image commentary" on
values.yaml. The second half of my comment asserted thatlitellm-database"is still published", which is a claim about an external registry's state that rots the day that stops being true, and the bot is right that it does not belong in a values file. Trimmed to one line covering only why this image can run the migrations Job, which is the non-obvious bit a future maintainer needs and cannot drift. Not deleted outright, because comments invalues.yamlare this file's documentation convention and render into the chart's values tableRebutted, "keep product docs centralized" on
README.md.helm/litellm-helm/README.mdis chart metadata rather than product documentation: it ships inside the chart package, is rendered by Artifact Hub from the packaged chart, and has always lived besideChart.yaml. Nothing was added here; one existing table cell that already disagreed withvalues.yamlwas corrected, and it would still be wrong after this change if left alone. The real product-docs drift this PR creates is in thelitellm-docsrepo, where the monolithicvalues.yamlsample pinned the legacy repository, and that is fixed in BerriAI/litellm-docs#946Screenshots / Proof of Fix
Shared setup, a real kind cluster with the chart's own bundled Postgres, one namespace per side, both installed from the same values file:
Before (133e72c)
The chart renders and runs the legacy image
Both images migrate a fresh Postgres identically
After (78fe47a)
The chart renders and runs the canonical image
The full rendered diff against Before is those two lines, the chart version label, and the per-render random master key and Postgres password. Nothing else moves
The chart's own tests
Helm unit testworkflow runs, with the plugin version CI pins (v0.8.2, checksum-verified) and its declared-vs-executed suite guardType
🐛 Bug Fix
🚄 Infrastructure
Caveats
docker/Dockerfile.databaseand its published image stayimage.repositoryexplicitly are unaffectedci_cd/security_scans_readme.mdclaims a Grype scan onDockerfile.database; stale, left aloneFinal Attestation