Repository navigation
feat(daemon): mount existing claims into a workspace's pods - #1804
Merged
Merged
Conversation
A session's own storage starts empty and user_data runs again on every boot, so a heavy app was installed again on each machine and sessions had no way to share content. A Kubernetes workspace now takes volumes, each an existing PersistentVolumeClaim of its namespace with a mount path and an optional read_only. The list is sent as spec.sandbox.volumes on the session's Orchestrator, which needs operator v0.36.0. Closes #1803
edenreich
commented
Nov 10, 2026
5 tasks
This was referenced Nov 11, 2026
Merged
edenreich
marked this pull request as ready for review
November 11, 2026 00:06
Contributor
|
🎉 This PR is included in version 0.255.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A session's own
storagestarts empty anduser_dataruns again on every boot, so a heavy app is installed again on each machine and sessions have no way to share content. A Kubernetes workspace indaemon.yamlnow takesvolumes, each an existing PersistentVolumeClaim of its namespace.read_onlyis for content an agent copies before it changes it, so the original stays as it is.Closes #1803
Changes
WorkspaceVolume(name,claim,mount_path,read_only) andvolumesonWorkspaceEntryinconfig/daemon.go.daemon.yamlrejects a volume without a name or a claim, a name used twice and amount_paththat is not absolute. Volumes on a workspace that is notkind: kubernetesare refused.orchestrator()sends the list asspec.sandbox.volumes, which feat(orchestrator): mount existing claims into a sandbox operator#340 adds.requiredOperatorVersionnamesv0.36.0when a workspace has volumes, so an older operator fails with the upgrade message.docs/daemon.mdanddocs/configuration-reference.mddocument the key.Notes for the reviewer
v0.36.0is assumed. It is the next minor release after operator 0.35.0, where feat(orchestrator): mount existing claims into a sandbox operator#340 is expected to land. The constant and the docs line change if it ships under another version.user_data. The CLI only patches a running session's operating mode, so a changed list reaches the sessions teleported after it.examples/session-teleport/daemon.yamlis not changed, although [FEATURE] Workspace volumes in daemon.yaml #1803 asks for it. The example is runnable, and a volume there needs a claim manifest and an operator release that does not exist yet.computekeeps its volumes with no extra code, since compute sets the connection fields only.Docs follow-up
inference-gateway/docs#1188