Open DomineCore opened 2 months ago
After reading the code of the getResourceTree function in appcontroller.go, I came up with a solution and I hope to submit a pull request to fix it.
/assignee
What does it mean for the resource to have multiple owner references? What if they conflict doing some updates or managing lifecycle?
I don't know an easy way to fix the duplication, since the app view is intended to show a tree, and this would introduce a diamond pattern.
Is 2.9 your cli or server version? If the later, please upgrade and check if the issue is still present, since 2.9 has reached EOL.
Checklist:
argocd version
.Describe the bug
When I use argocd, I encounter some resources with multiple OWnerreferences. When argocd's resourcetree is generated, two identical nodes will be added to the nodes. The result returned by my resource definition and resourcetree is as follows: 1、my resource:
2、resource-tree result.nodes:
To Reproduce
Expected behavior Normally there should be only one node for the same resource
Screenshots
Version
Logs