Skip to content

feat(k8s): add namespace-per-workspace support (RFC 0011 Phase 3) - #2656

Draft
derekwaynecarr wants to merge 1 commit into
NVIDIA:mainfrom
derekwaynecarr:feat/rfc-0011-phase3-namespace-per-workspace
Draft

feat(k8s): add namespace-per-workspace support (RFC 0011 Phase 3)#2656
derekwaynecarr wants to merge 1 commit into
NVIDIA:mainfrom
derekwaynecarr:feat/rfc-0011-phase3-namespace-per-workspace

Conversation

@derekwaynecarr

Copy link
Copy Markdown
Collaborator

Summary

Implement three workspace namespace modes for the Kubernetes compute driver: shared (default, preserves current single-namespace behavior), managed (auto-creates/deletes namespaces per workspace), and operator (pre-provisioned namespaces with dynamic discovery via label selector or drop-in allowlist file).

Related Issue

Closes #2486

Changes

Key changes:

  • WorkspaceMode enum and namespace resolution in driver config
  • Managed namespace lifecycle with ServiceAccount and OpenShift SCC annotation propagation
  • Cluster-wide sandbox CR watchers for managed/operator modes
  • NamespaceValidator (Exact/Prefix/Allowlist) for SA token auth
  • Workspace-aware credential secret storage
  • Helm ClusterRole for multi-namespace RBAC
  • Gateway config, architecture, and reference docs

Testing

  • [ x] mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

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

Implement three workspace namespace modes for the Kubernetes compute
driver: shared (default, preserves current single-namespace behavior),
managed (auto-creates/deletes namespaces per workspace), and operator
(pre-provisioned namespaces with dynamic discovery via label selector
or drop-in allowlist file).

Key changes:
- WorkspaceMode enum and namespace resolution in driver config
- Managed namespace lifecycle with ServiceAccount and OpenShift SCC
  annotation propagation
- Cluster-wide sandbox CR watchers for managed/operator modes
- NamespaceValidator (Exact/Prefix/Allowlist) for SA token auth
- Workspace-aware credential secret storage
- Helm ClusterRole for multi-namespace RBAC
- Gateway config, architecture, and reference docs

Signed-off-by: Derek Carr <decarr@redhat.com>
@derekwaynecarr
derekwaynecarr requested review from a team, maxamillion and mrunalp as code owners August 7, 2026 21:40
@copy-pr-bot

copy-pr-bot Bot commented Aug 7, 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.

@derekwaynecarr
derekwaynecarr marked this pull request as draft August 7, 2026 21:40
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