-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Allow setting application namespace from ApplicationSet template #11104
Comments
Hi , assigning this to myself , would soon submit the change |
Hey. |
I think we should consider having the ApplicationSet controller enforce constraints on the For example, ApplicationSets in namespaces matching But of course, there should also be a mode allowing an ApplicationSet to deploy to multiple destination namespaces. And ideally a way to enforce both options with the same controller. Are folks considering more advanced use cases which we should consider? |
working on it. |
Any update? or which version will include this fix? |
This does what I wanted (appset in any namespace, deploying to same namespace): #12378 I think it's distinct from this request, which is an appset deploying to other namespaces. I think both are valid. |
When this fix will be available? |
Is there any update on that? |
Bump, would love this feature. |
any updates on this? Really want this feature |
imo we need a proposal for an AppSetProject feature in order to make this request viable. The whole point of the apps-in-any-namespace feature is to enable gitops-based self-service of applications for non-admins. Appset-within-a-namespace allows safe self-service of appsets within user-controlled namespaces. But appsets-spanning-namespaces again makes the AppSet effectively an admin resource. If I can create an AppSet that can install an App in any namespace, I can install an app in the namespace holding admin-level apps (usually the To make an appsets-spanning-namespaces feature usable, we need some way for admins to restrict what their users' AppSets can do. Examples of restrictions they may need:
We would need to decide how the currently pseudo-project-scoped AppSet resource would be handled by the API server in a system which includes an AppSetProject. This is a very, very big feature and would require a proposal to be presented and accepted. Is anyone up for writing the proposal? |
Interesting, our use case differs that we do not care about self service, but having a namespace per cluster with its applications purely for organizational purposes. This basically prevents us to use ApplicationSets as we would than need to put all applications in one namespace. Additionally I wonder, aren't ApplicationSet's considered to be an "admin" resource for other reasons anyway? |
Summary
With the introduction of namespaced applications in #9755 we can have applications in different namespaces.
But the applications generated from an ApplicationSet always use the namespace from the ApplicationSet.
ApplicationSet should allow setting
.spec.template.metadata.namespace
for the generated application.Motivation
When deploying the same repository/directory to multiple clusters, one could use ApplicationSets to automatically generate applications for each cluster.
The names of these applications can become rather large as they might include both the application name and cluster name.
For organization purposes it might make sense to put all these argo-cd applications for the same repositry/directory into a single namespace.
Lets imagine the following directory structure:
With the following ApplicationSet
Which I would expect to generate applications like:
Proposal
When
.spec.template.metadata.namespace
is set on the ApplicationSet, use that, otherwise fallback to the ApplicationSet's namespace.The text was updated successfully, but these errors were encountered: