fix: gate Weaviate PVC creation on persistence.enabled#3619
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Helm template for Weaviate's ChangesWeaviate PVC Persistence Gate
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
680e813 to
988cd9d
Compare
4f16733 to
2ffea79
Compare
persistence.enabled
Confidence Score: 5/5Safe to merge — the fix correctly aligns PVC creation with the deployment template's existing persistence logic, and the default value of The change is a single-line guard that matches the pattern already used in the Weaviate deployment template. The No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "chore: don't render the pvc if weavite p..." | Re-trigger Greptile |
988cd9d to
a6055e7
Compare
2ffea79 to
77e78f9
Compare
77e78f9 to
d82ba33
Compare
a6055e7 to
029741c
Compare

Summary
The Weaviate PersistentVolumeClaim (PVC) in the Bifrost Helm chart was being created unconditionally whenever Weaviate was enabled and not using an external instance. This change gates PVC creation behind the
persistence.enabledflag, preventing unnecessary PVC creation when persistence is not desired.Changes
.Values.vectorStore.weaviate.persistence.enabledas an additional condition to the PVC template, so the PVC is only created when persistence is explicitly enabledType of change
Affected areas
How to test
Deploy the Bifrost Helm chart with Weaviate enabled and
vectorStore.weaviate.persistence.enabledset tofalse. Verify that no PVC is created. Then set it totrueand confirm the PVC is created as expected.helm template bifrost ./helm-charts/bifrost \ --set vectorStore.enabled=true \ --set vectorStore.type=weaviate \ --set vectorStore.weaviate.enabled=true \ --set vectorStore.weaviate.external.enabled=false \ --set vectorStore.weaviate.persistence.enabled=false \ | grep -i PersistentVolumeClaimExpected: no PVC output when
persistence.enabled=false.Breaking changes
Related issues
Security considerations
None.
Checklist
docs/contributing/README.mdand followed the guidelines