feat(helm)!: Add env/volume injection hooks to the worker Deployment.#415
feat(helm)!: Add env/volume injection hooks to the worker Deployment.#41520001020ycx wants to merge 1 commit into
Conversation
|
Warning Review limit reached
Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
WalkthroughThe Helm chart now supports configurable worker environment variables, volume mounts, and volumes. The worker template conditionally renders these list-based settings, and the chart version is incremented from 0.1.3 to 0.1.4. ChangesWorker Helm customization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
6148856 to
6b683d7
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/deployment/spider-helm/Chart.yaml`:
- Line 5: Update the chart version in Chart.yaml from 0.1.4 to 0.2.0 to reflect
the breaking spiderConfig.worker.extra_envs values contract change from a map to
a list.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0d64bba0-7a01-41c1-b64f-81419cd8aaa4
📒 Files selected for processing (3)
tools/deployment/spider-helm/Chart.yamltools/deployment/spider-helm/templates/worker-deployment.yamltools/deployment/spider-helm/values.yaml
6b683d7 to
4613974
Compare
Description
When this chart is consumed as a subchart, the worker container often needs consumer-specific runtime env vars, volumes, and volume mounts. This PR adds the wiring for such configuration to be passed to the worker Deployment through values at install time (the validation section below shows an example of what a user may supply):
spiderConfig.worker.extra_envsbecomes a list of rawEnvVarobjects.name: valuestring pairs, which limits the semantic, structured fields likevalueFrom.secretKeyRefcannot be expressed.spiderConfig.worker.extra_volume_mounts/extra_volumeshooks accept rawVolumeMount/Volumeobjects.Note
This is a breaking change because
spiderConfig.worker.extra_envschanges from a map (name: value) to a list of rawEnvVarobjects, so values written against chart0.1.3would render an invalid Deployment after upgrading.Checklist
breaking change.
Validation performed
1. The hooks render
valueFromenv vars, extra mounts, and extra volumesRender the worker Deployment with all three hooks populated.
Expected: the container gets the env var with
valueFrom.secretKeyRefand the/var/data/staged-archivesmount, and the pod gets theemptyDirvolume, each appended after the existingconfigentries.2. Default values render an unchanged worker Deployment
Render with default values and diff against the chart before this change.
helm template test tools/deployment/spider-helm --show-only templates/worker-deployment.yamlExpected: byte-identical to the
0.1.3render except thehelm.sh/chart: spider-0.1.4labels — noenv:key, no empty list items.Summary by CodeRabbit
New Features
Bug Fixes
Chores