Open keekdageek opened 3 weeks ago
AppKey includes the namespace https://github.com/argoproj/argo-cd/blob/9b11b21f00f006ec5bfca1ff39210e54b65bf4b5/controller/appcontroller.go#L2398
We are creating a Cluster Workflow Templates application a namespace.
Can you rephrase it, please? I'm having a hard time understanding what exactly is being done. It'd be helpful if you share some resources definitions and application manifest.
Describe the bug
We are creating a Cluster Workflow Templates application a namespace. The application project includes the
orphanedResources.warn = true
which then leads to ArgoCD reporting pretty much every resource in the cluster orphaned and starts to slow down the performance.I'm aware of the workaround to just remove the orphanedResources from the project which is what we are doing.
It appears to be related to how
belongToAnotherApp
is calculated, in particular how theappKey := ctrl.toAppKey(appName)
is calculated for this type of appproject without a namespacehttps://github.com/argoproj/argo-cd/blob/9b11b21f00f006ec5bfca1ff39210e54b65bf4b5/controller/appcontroller.go#L600-L604
To Reproduce
Setup apprproject like defined above with a Cluster no namespace resource
Expected behavior
Don't show orphanedInstances seamlessly without the performance hit or check for this case and inform the user that it doesn't work with this type of application.
Version