Replies: 2 comments
-
The I would like to ask how using a Kyverno (or Gatekeeper, or other tool's) policy is more simple to implement this (very application specific) logic than specifying a list of namespaces in a field in the AppProject? Also, I see some additional constraints:
I'm trying to understand how this is re-inventing the wheel. One is a very simple way to configure this, the other is a very complex, easy-to-get-wrong type piece of configuration. Argo CD definitely doesn't want to get opinionated about a policy enforcement tool, nor provide (possibly faulty, outdated, etc) configuration snippets for any of those to ensure the security of the system. Don't get me wrong, I'm not arguing against those tools (or the things they implement), I think they are pretty important for a lot of stuff. But I don't think they should solve a problem that is native to Argo CD. Last but not least, I think for ApplicationSet, the implementation of "any namespace" could be simple enough:
I don't see the need for an ApplicationSet in namespace |
Beta Was this translation helpful? Give feedback.
-
@jannfis thanks a lot for your answer. :) And moreover thanks a lot for your suggestion in 3 points !!! I am currently working on #12378 and your help removed the haze in my brain! |
Beta Was this translation helpful? Give feedback.
-
Hello.
I would like to understand why Application in any namespace feature https://argo-cd.readthedocs.io/en/stable/operator-manual/app-any-namespace/ required to add sourceNamespaces in AppProject ?
In the future I would also like to see ApplicationSet to be multi namespace.
However AppProject cannot enforce this as it is for Applications only. Therefore I would probably do a recommendation to use Kyverno, Gatekeeper or custom Admission Webhook to manage this.
I don't think it is a good idea to re-invent the wheel with ArgoCD while this can be achieved with already existing tool. A simple recommendation would do the job.
An example with Kyverno:
Beta Was this translation helpful? Give feedback.
All reactions