-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project and namespace naming issue when deploying a service into the same cluster as Kargo #3585
Comments
+1, I scope namespaces to |
+1 in my case, as the infra-provider, the namespace name can be quite long as i need to respect some internal norms + unique keys identifiers: In our case we create the namespaces beforehand (and then we use namespace adoption) . I also believe that the kargo.project should be namespaced (in the kargo namespace) as I think that there is no need to have it cluster scoped (just like argocd applications) but that's an other topic. |
I understand that this is bothersome to some users and believe there is some room for discussion. We have always seen There's an elegant simplicity to all that, which in many contexts proves to be very convenient. Recall that not everyone uses the UI. Many users interact with Kargo through its CLI, The terms "project" and "namespace" are also used interchangeably throughout the code base. If, for example, a function takes All this is to say: Out of the proposed approaches, the "display name" suggestion seems most favorable, as maintaining the project/namespace equivalency retains the benefits noted above and avoids the noted disruptions. For consistency with precedent already set elsewhere in Kargo (with Freight), I'd propose calling it "alias" instead. At the same time, I don't want to pretend that such a feature as So for now, let's say that any movement on this issue first requires a comprehensive proposal, ideally from someone willing to do the work.
In its capacity as a proxy for a namespace, |
Checklist
* [ ] I've pasted the output ofkargo version
, if applicable.* [ ] I've pasted logs, if applicable.Proposed Feature
Either:
Motivation
When creating a Project Kargo will create a matching namespace with the same name. It is also possible for a project to adopt an existing namespace. However adoption seems to require Project and namespace name to match.
But assume we want to deploy a service into the same cluster as Kargo itself is running in. For example
cert-manager
. If we call the Projectcert-manager
then both Kargo andcert-manager
will try to create resources in the same namespace. This could be avoided by placingcert-manager
in another namespace or e g calling the Project something likecert-manager-project
. But it would be nice to just have a cert-manager project i Kargo.Thank you team for your great work with Kargo!
Suggested Implementation
The text was updated successfully, but these errors were encountered: