Skip to content

refactor(api): remove SandboxTemplate.volume_claim_templates#2088

Open
elezar wants to merge 1 commit into
mainfrom
remove-volume-claim-templates/el
Open

refactor(api): remove SandboxTemplate.volume_claim_templates#2088
elezar wants to merge 1 commit into
mainfrom
remove-volume-claim-templates/el

Conversation

@elezar

@elezar elezar commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

Remove SandboxTemplate.volume_claim_templates from the public API. The field was added during the Kubernetes driver extraction refactor (#817) but was never surfaced to users — no CLI flag, no Python SDK helper, no documentation. The only way to reach it was raw gRPC construction.

The Kubernetes driver now unconditionally injects the default workspace PVC, removing the branching logic that existed to accommodate user-supplied VCTs. Field number 9 is reserved in the proto to prevent future reuse.

See also #2034 (feat(kubernetes): support PVC subPath driver config), which covers the supported path for PVC customisation via driver config.

Related Issue

N/A

Changes

  • proto/openshell.proto: removed field 9, added reserved 9 / reserved "volume_claim_templates"
  • crates/openshell-server/src/grpc/validation.rs: removed size-limit validation for the field
  • crates/openshell-server/src/compute/mod.rs: removed pass-through in build_platform_config()
  • crates/openshell-driver-kubernetes/src/driver.rs: removed user_has_vct/inject_workspace branching; default workspace VCT is now always injected

Testing

  • mise run pre-commit passes
  • Unit tests pass (3 pre-existing failures on main unrelated to this change)
  • E2E tests added/updated (not applicable — no behaviour change for existing users)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

The field was added during the Kubernetes driver extraction refactor
(#817) as a pass-through mechanism, but was never wired up to a CLI
flag, Python SDK helper, or any documentation. The only reachable
user path was raw gRPC construction.

The Kubernetes driver now always injects the default workspace PVC,
removing the branching logic that checked for a user-supplied VCT.
Field number 9 is reserved in the proto to prevent reuse.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@elezar elezar marked this pull request as ready for review July 1, 2026 10:44
@elezar elezar requested review from a team, derekwaynecarr, maxamillion and mrunalp as code owners July 1, 2026 10:44
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