fix(helm): wire envFrom secrets and configmaps into migrations job (closes #30311) - #30325
Conversation
|
|
Greptile SummaryWires
Confidence Score: 5/5Safe to merge — the change is a minimal, focused copy of an existing pattern with no behavioural side-effects. The template change is an exact copy of the envFrom block already proven in deployment.yaml. The explicit env entries (including DISABLE_SCHEMA_UPDATE=false) retain precedence over anything coming from the referenced Secrets/ConfigMaps. Three targeted regression tests cover all three failure modes described in the bug report, and the empty-values case continues to behave identically to deployment.yaml. No files require special attention.
|
| Filename | Overview |
|---|---|
| deploy/charts/litellm-helm/templates/migrations-job.yaml | Adds envFrom block (environmentSecrets + environmentConfigMaps) mirroring deployment.yaml exactly; change is minimal and correct. |
| deploy/charts/litellm-helm/tests/migrations-job_tests.yaml | Three new helm-unittest cases cover secrets-only, configmaps-only, and both together; assertions use contains correctly for list membership. |
Reviews (1): Last reviewed commit: "fix(helm): wire envFrom secrets and conf..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Greptile gave this 5/5 (full review above). Tagging @yuneng-berri @yassin-berriai — based on recent merged helm PRs (#28710, #28712) you'd be the right folks to take a look when there's a window. Happy to address any review feedback quickly. Thanks |
|
Heads-up on the red X above. The |
2581dc3 to
64844d2
Compare
|
Rebased cleanly onto current |
64844d2 to
66c930a
Compare
|
recheck |
|
The one red check ( |
Relevant issues
Closes #30311
Linear ticket
n/a (community contribution)
Pre-Submission checklist
Screenshots / Proof of Fix
Render the migrations Job with two env secrets and one configmap set via the standard chart values
Output (relevant slice)
Empty case still parses cleanly (matches the existing
deployment.yamlbehavior)Output
Unit tests via helm-unittest
Output
Three new regression cases cover the three failure modes of the bug (environmentSecrets only, environmentConfigMaps only, both together)
Type
Bug Fix
Changes
Adds the same
envFrom:block already present intemplates/deployment.yamltotemplates/migrations-job.yaml, ranging over.Values.environmentSecretsand.Values.environmentConfigMaps. The migrations Job container now sees the same Secret and ConfigMap references the main Deployment does, so aDATABASE_*var that lives in a referenced Secret (the common production pattern) reaches the Prisma migration step. Mirroring keeps the two surfaces from drifting on future value-key additionsTest file adds three new cases following the existing style: secrets-only, configmaps-only, and both, each asserting the rendered
envFromlist contains the expected refs