Automatically generate Organization Namespace Name #44
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: servala/servala-portal#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current Situation
We allow manually setting the name of the Kubernetes Namespace when creating the organization. This is suboptimal because the namespace cannot be renamed on the Kubernetes API. Should the user mistype it or the organization name changes, the Namespace name cannot be renamed.
As the name of the organization namespace is a technical implementation detail and isn't surfaced to the user of the Portal (for shared control-planes, see #45), we should automatically generate the name of the namespace.
Change Required
Do not let the user choose the name of the organization namespace, instead generate it. We have several possibilities to generate the name:
org-$ID
Let's use:
org-$ID
, where ID is the database ID of the organization. By prefixing withorg
we adhere to RFC 1035 Label Names.Keep the field "Kubernetes Namespace" in the model and continue using the content of this field should it be set, otherwise use the
org-$ID
name.Organization Namespace Naming Changeto Automatically generate Organization Namespace Name