feat(kubernetes): support PVC subPath driver config#2034
Conversation
Signed-off-by: mjamiv <michael.commack@gmail.com>
|
Thanks for this — the caller-owned-PVC-by-
Happy to help validate — we're deploying this exact pattern and can share e2e findings. |
Signed-off-by: mjamiv <michael.commack@gmail.com>
|
Thanks for the test-scope review. I added positive I agree the missing-PVC and durability claims need cluster-level coverage: kubelet |
Summary
Add Kubernetes driver-config support for mounting existing PVCs into the agent container with optional
sub_pathvalues. This gives deployments a narrow driver-owned storage topology for durable per-user PVC data without broad PodSpec overrides.Related Issue
Fixes #2033
Changes
driver_config.kubernetes.volumes[]for PVC-backed pod volumes.driver_config.kubernetes.containers.agent.volume_mounts[]for agent PVC mounts with optionalsub_path.read_only: falseis explicit.sub_pathvalues, and attempts to weaken read-only PVC volumes./sandboxworkspace PVC injection when an explicit Kubernetes driver-config mount targets a path below/sandbox/.Testing
mise run pre-commitpassesmise; after installing it,mise run pre-commitrefused to run until the repo config was trusted. I did not runmise trustbecause it persistently changes local trust settings.cargo fmt --all -- --checkcargo test -p openshell-driver-kubernetescargo clippy -p openshell-driver-kubernetes --all-targets -- -D warningsnpx --yes markdownlint-cli2@0.22.0 crates/openshell-driver-kubernetes/README.md docs/reference/sandbox-compute-drivers.mdxUV_CACHE_DIR=.cache/uv uv run python scripts/update_license_headers.py --checkChecklist