{{ message }}
Support single-namespace deployments#16
Merged
Merged
Conversation
added 3 commits
December 17, 2025 12:04
Add new test. Speed up tests (--early-readiness).
5722538 to
8c15212
Compare
Collaborator
Author
davdhacs
requested changes
Dec 18, 2025
davdhacs
left a comment
Collaborator
There was a problem hiding this comment.
good idea. I usually install to sharedNamespace like this and so I intend to use this approach.
Co-authored-by: davdhacs <105243888+davdhacs@users.noreply.github.com>
davdhacs
approved these changes
Dec 18, 2025
davdhacs
left a comment
Collaborator
There was a problem hiding this comment.
+1 the string-splitting comment request isn't a blocker.
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.

Overview
roxie currently only supports deploying Central and SecuredCluster into separate namespaces.
There were originally two reasons for this:
But as requested from colleagues there is a strong desire to have roxie support single-namespace deployments for ergonomic reasons. This is what this PR implements:
A new flag
--single-namespacefor thedeployandteardownsub-commands, which changes deployment and teardown logic to use a single-namespace approach. When used, the namespacestackroxwill be used for both deployments.Making this configurable (if desired) is not in scope for this PR.
Teardowns
The biggest obstacle for implementing the single-namespace mode is that teardown mechanism. Instead of simply deleting the respective namespace, we now need to delete only those resources from a namespaces belonging to either the Central or the SecuredCluster deployment.
Why not simply deleting the respective CR (in case of operator deployments), you may ask? Multiple reasons:
That being said, roxies new teardown strategy, which seems to work pretty well, works as follows:
replicasetsandpods) and what the cluster supports.This also seems to be pretty fast!
Deployments
For the deployments we actually don't need to do many changes. The wiring between Central and SecuredCluster needed to be changed to be parametrizable by the namespace.