feat(k8s): map workspaces to operator namespaces - #1
Draft
dhirajsb wants to merge 1 commit into
Draft
Conversation
Signed-off-by: Dhiraj Bokde <dbokde@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
operator_workspace_namespacesto the Kubernetes compute driver.Testing
cargo test -p openshell-driver-kubernetes -p openshell-driver-kubernetes-secretscargo clippy -p openshell-driver-kubernetes -p openshell-driver-kubernetes-secrets --all-targets -- -D warningshelm unittest deploy/helm/openshell -f 'tests/*_test.yaml'helm lint deploy/helm/openshellChecklist