Skip to content

fix: gate Weaviate PVC creation on persistence.enabled#3619

Open
BearTS wants to merge 1 commit into
05-20-fix_reids_to_pass_the_secret_in_envfrom
05-20-chore_don_t_render_the_pvc_if_weavite_persistent_is_disabled
Open

fix: gate Weaviate PVC creation on persistence.enabled#3619
BearTS wants to merge 1 commit into
05-20-fix_reids_to_pass_the_secret_in_envfrom
05-20-chore_don_t_render_the_pvc_if_weavite_persistent_is_disabled

Conversation

@BearTS
Copy link
Copy Markdown
Contributor

@BearTS BearTS commented May 20, 2026

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.enabled flag, preventing unnecessary PVC creation when persistence is not desired.

Changes

  • Added .Values.vectorStore.weaviate.persistence.enabled as an additional condition to the PVC template, so the PVC is only created when persistence is explicitly enabled

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (React)
  • Docs

How to test

Deploy the Bifrost Helm chart with Weaviate enabled and vectorStore.weaviate.persistence.enabled set to false. Verify that no PVC is created. Then set it to true and 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 PersistentVolumeClaim

Expected: no PVC output when persistence.enabled=false.

Breaking changes

  • Yes
  • No

Related issues

Security considerations

None.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 20, 2026

Review Change Stack

Warning

Rate limit exceeded

@BearTS has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 27 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b3c7fe7e-d256-4a8e-8df4-c567b769fe8a

📥 Commits

Reviewing files that changed from the base of the PR and between 988cd9d and 029741c.

📒 Files selected for processing (1)
  • helm-charts/bifrost/templates/weaviate-pvc.yaml
📝 Walkthrough

Walkthrough

The Helm template for Weaviate's PersistentVolumeClaim now includes an additional condition gate requiring vectorStore.weaviate.persistence.enabled to be true, alongside existing checks for vector store and Weaviate enablement. The PVC manifest itself remains unchanged.

Changes

Weaviate PVC Persistence Gate

Layer / File(s) Summary
PVC persistence enablement condition
helm-charts/bifrost/templates/weaviate-pvc.yaml
The Helm if condition at line 1 now gates PVC creation on vectorStore.weaviate.persistence.enabled, adding an explicit persistence enablement requirement to the existing vector store and Weaviate type checks.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A single line of Helm wisdom,
Where persistence guards the claim,
PVC waits for the right signal,
Before it stakes its name!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: gating Weaviate PVC creation on the persistence.enabled flag, which directly matches the core modification in the changeset.
Description check ✅ Passed The description covers all key sections including summary, changes, type of change, affected areas, and testing instructions, though some checklist items remain unchecked.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 05-20-chore_don_t_render_the_pvc_if_weavite_persistent_is_disabled

Comment @coderabbitai help to get the list of available commands and usage tips.

@BearTS BearTS force-pushed the 05-20-chore_don_t_render_the_pvc_if_weavite_persistent_is_disabled branch from 680e813 to 988cd9d Compare May 20, 2026 10:56
@BearTS BearTS force-pushed the 05-20-fix_reids_to_pass_the_secret_in_env branch from 4f16733 to 2ffea79 Compare May 20, 2026 10:56
@BearTS BearTS changed the title chore: don't render the pvc if weavite persistent is disabled fix: gate Weaviate PVC creation on persistence.enabled May 20, 2026
@BearTS BearTS marked this pull request as ready for review May 20, 2026 10:59
@BearTS BearTS requested a review from a team as a code owner May 20, 2026 10:59
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 20, 2026

Confidence Score: 5/5

Safe to merge — the fix correctly aligns PVC creation with the deployment template's existing persistence logic, and the default value of persistence.enabled: true preserves existing behavior.

The change is a single-line guard that matches the pattern already used in the Weaviate deployment template. The values.yaml default keeps persistence.enabled: true, so no existing deployments are affected. No logic regressions or edge cases are introduced.

No files require special attention.

Important Files Changed

Filename Overview
helm-charts/bifrost/templates/weaviate-pvc.yaml Adds persistence.enabled guard to PVC creation — correctly aligns with the deployment template which already uses emptyDir when persistence is disabled

Reviews (3): Last reviewed commit: "chore: don't render the pvc if weavite p..." | Re-trigger Greptile

@BearTS BearTS force-pushed the 05-20-fix_reids_to_pass_the_secret_in_env branch from 77e78f9 to d82ba33 Compare May 20, 2026 12:04
@BearTS BearTS force-pushed the 05-20-chore_don_t_render_the_pvc_if_weavite_persistent_is_disabled branch from a6055e7 to 029741c Compare May 20, 2026 12:04
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.

1 participant