Repository navigation
feat(workspaces): mount existing claims as volumes on a workspace - #532
Merged
Merged
Conversation
A workspace's computers start empty, so a heavy app is installed again on every machine and raw content has to be copied into each session. The workspace form now lists volumes, each an existing claim of the workspace's namespace with a mount path and a read-only switch, saved to the volumes key of daemon.yaml. Checking a workspace reports a claim that does not exist. A folder on this Mac as a volume is not part of this change. Refs #531
Contributor
|
🎉 This PR is included in version 0.66.0 🎉 The release is available on GitHub release 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 workspace's computers start empty, so a heavy app is installed again on every machine and raw content has to be copied into each session. A workspace in Settings > Workspaces can now list volumes - existing PersistentVolumeClaims of its namespace, each with a mount path and a Read-only switch for originals the agent copies before it edits them.
This is the claim half of #531. A folder on this Mac as a volume is not in this PR, so the issue stays open.
Refs #531
Changes
backend/src/workspace_volumes.rs-WorkspaceVolume(name,claim,mount_path,read_only), read from and written to thevolumeskey of a workspace indaemon.yaml. Removing the last volume removes the key.check_workspaceadds one prerequisite per mounted claim once the cluster itself checks out, and says which claim to create when it is missing.frontend/components/WorkspaceVolumes.tsx- rows of name, claim, mount path and a Read-only checkbox, with Add volume and a remove button per row. Enter moves from the name to the claim to the mount path.volumesProbleminfrontend/lib/workspace-form.tsrefuses a missing name, a name used twice, an empty claim and a mount path that does not start with/, before saving.AGENTS.mdDOM contract gains the volume ids,Add volume,Remove volume <n>andVolume <n> read-only. README mentions volumes.e2e/tests/workspace-volumes.yamladds a read-only volume through the UI and asserts it indaemon.yaml.Notes for the reviewer
Still open on #531
Docs follow-up
inference-gateway/docs#1190