When a host agent registers, it now searches for a PVE node with a matching hostname and links them together. Similarly, when PVE nodes are discovered, they check for existing host agents with matching hostnames. This prevents the confusion of seeing duplicate entries when users install agents on PVE cluster nodes that were already discovered via the cluster API. - Added LinkedHostAgentID field to Node struct - Added LinkedNodeID/LinkedVMID/LinkedContainerID fields to Host struct - Added findLinkedProxmoxEntity() to match by hostname (with domain stripping) - Updated UpdateNodesForInstance() to preserve and auto-set links |
||
|---|---|---|
| .. | ||
| concurrency_test.go | ||
| converters.go | ||
| converters_test.go | ||
| models.go | ||
| models_frontend.go | ||
| state_docker_test.go | ||
| state_host_test.go | ||
| state_snapshot.go | ||