Skip to content

feat(k8s): map workspaces to operator namespaces - #1

Draft
dhirajsb wants to merge 1 commit into
derekwaynecarr:feat/rfc-0011-phase3-namespace-per-workspacefrom
dhirajsb:codex/operator-workspace-namespace-map
Draft

feat(k8s): map workspaces to operator namespaces#1
dhirajsb wants to merge 1 commit into
derekwaynecarr:feat/rfc-0011-phase3-namespace-per-workspacefrom
dhirajsb:codex/operator-workspace-namespace-map

Conversation

@dhirajsb

Copy link
Copy Markdown

Summary

Adds an optional explicit workspace-to-namespace map for Kubernetes operator mode.

This is stacked on NVIDIA#2656. Kubernetes platform operators commonly manage namespace names through cluster-specific conventions such as ownership prefixes, tenancy boundaries, or policy domains. Requiring a workspace identifier to equal the namespace name couples an application-facing identifier to cluster administration. An explicit map keeps those concerns independent while preserving the existing one-to-one behavior for label- and file-based namespace discovery.

Related Issue

Changes

  • Add operator_workspace_namespaces to the Kubernetes compute driver.
  • Resolve mapped namespaces through the existing operator allowlist and fail closed for unmapped workspaces.
  • Use the same mapping for Kubernetes Secrets credential placement.
  • Expose the map through the existing Helm chart and document it.

Testing

  • cargo test -p openshell-driver-kubernetes -p openshell-driver-kubernetes-secrets
  • cargo clippy -p openshell-driver-kubernetes -p openshell-driver-kubernetes-secrets --all-targets -- -D warnings
  • helm unittest deploy/helm/openshell -f 'tests/*_test.yaml'
  • helm lint deploy/helm/openshell
  • Helm documentation generation check
  • SPDX license header check

Checklist

  • Tests added for mapped and unmapped workspaces
  • Helm rendering covered by unit tests
  • Configuration and architecture documentation updated
  • Commit signed off

Signed-off-by: Dhiraj Bokde <dbokde@nvidia.com>
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