kosmos-io / kosmos

The limitless expansion of Kubernetes. Make Kubernetes without boundaries
https://kosmos-io.github.io/kosmos-website/
Apache License 2.0
201 stars 49 forks source link

The list of the virtual node is not updated #621

Open rxy0210 opened 4 months ago

rxy0210 commented 4 months ago

What happened: In one to one mode, some items in the middle of a leafnode array in a cluster object are deleted, and the clustertree cannot update the virtual node information corresponding to the following items. What you expected to happen: clustertree LeafNodes in the cluster after being refreshed How to reproduce it (as minimally and precisely as possible): Delete the middle item of the leafnode array of a cluster object in one2one mode Anything else we need to know?: Problem location: for _, rootNode := range c.Nodes, Node is the old data in node_resources_controller.go. When the middle item is processed, an error is returned directly, and the remaining elements cannot be processed. Environment: