Skip to content

feat(workspaces): mount existing claims as volumes on a workspace - #532

Merged
edenreich merged 1 commit into
mainfrom
feat/workspace-volumes
Nov 11, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/workspace-volumes

Conversation

@edenreich

@edenreich edenreich commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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

  • New backend/src/workspace_volumes.rs - WorkspaceVolume (name, claim, mount_path, read_only), read from and written to the volumes key of a workspace in daemon.yaml. Removing the last volume removes the key.
  • check_workspace adds one prerequisite per mounted claim once the cluster itself checks out, and says which claim to create when it is missing.
  • New 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.
  • volumesProblem in frontend/lib/workspace-form.ts refuses a missing name, a name used twice, an empty claim and a mount path that does not start with /, before saving.
  • AGENTS.md DOM contract gains the volume ids, Add volume, Remove volume <n> and Volume <n> read-only. README mentions volumes.
  • New e2e/tests/workspace-volumes.yaml adds a read-only volume through the UI and asserts it in daemon.yaml.

Notes for the reviewer

Still open on #531

  • The spike: does a folder on this Mac mount into a pod of the local cluster that runs with User data.
  • The folder option itself, and the notice that the local cluster must be provisioned again to gain the mount.

Docs follow-up

inference-gateway/docs#1190

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
@edenreich
edenreich marked this pull request as ready for review November 11, 2026 00:09
@edenreich
edenreich merged commit 01edfd7 into main Nov 11, 2026
7 checks passed
@edenreich
edenreich deleted the feat/workspace-volumes branch November 11, 2026 00:12
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.66.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant