Skip to content

feat(kubernetes): map workspaces to namespaces - #2644

Draft
dhirajsb wants to merge 1 commit into
NVIDIA:mainfrom
dhirajsb:codex/k8s-workspace-namespace-mapping-rebased
Draft

feat(kubernetes): map workspaces to namespaces#2644
dhirajsb wants to merge 1 commit into
NVIDIA:mainfrom
dhirajsb:codex/k8s-workspace-namespace-mapping-rebased

Conversation

@dhirajsb

@dhirajsb dhirajsb commented Aug 6, 2026

Copy link
Copy Markdown

Summary

Allow the Kubernetes compute runtime to map logical OpenShell workspace names to pre-provisioned Kubernetes namespaces. A configured mapping is fail-closed, while an empty mapping preserves the existing single-namespace behavior.

Related Issue

Closes #2486

Changes

  • Add and validate a workspace-to-namespace map in the Kubernetes compute configuration.
  • Route sandbox create, get, list, delete, watch, and service-account token bootstrap operations through the resolved namespace.
  • Deduplicate namespace-wide operations when multiple workspaces share a namespace.
  • Expose the mapping through Helm values and command-line configuration.
  • Document the mapping and add unit coverage for resolution, validation, multi-namespace lookup, and fail-closed behavior.

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (not applicable to this initial configuration-backed implementation)
  • cargo test -p openshell-driver-kubernetes (147 tests)
  • Kubernetes service-account authentication tests (22 tests)
  • Helm lint, Helm unit tests (76 tests), and generated documentation checks

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Dhiraj Bokde <dbokde@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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.

feat(kubernetes): map workspaces to sandbox namespaces

1 participant