-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically provision personal namespace
Extend Workspace manager to support automatic provisioning of personal namespaces. The name of the namespace to create will be calculated from the user name, which is expected to be an email address. The user that namespace is created for will get konflux-admin permissions on the namespace. The implementation is idempotent. This feature should be turned on using environment variables. This change also adds an additional test suite. In order to run it at the same time with the existing test suite (the default of go test), allow to use different ports for workspace-manager. In order to use the fakeclient provided by controller-runtime, its version was updated. Signed-off-by: gbenhaim <[email protected]>
- Loading branch information
Showing
9 changed files
with
575 additions
and
470 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,7 +229,7 @@ var _ = BeforeSuite(func() { | |
k8sClient = utils.StartTestEnv(schema, testEnv) | ||
|
||
serverProcess, serverCancelFunc = utils.CreateWorkspaceManagerServer("main.go", nil, "") | ||
utils.WaitForWorkspaceManagerServerToServe() | ||
utils.WaitForWorkspaceManagerServerToServe("http://localhost:5000/health") | ||
|
||
user1 := "[email protected]" | ||
user2 := "[email protected]" | ||
|
This file contains 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
Oops, something went wrong.