Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Merge remote-tracking branch 'origin/main' into fix/declared-node-link-honours-split

rcourtmanfe51ee2e6763
diff --cc internal/unifiedresources/registry.go
index 17b71b032e,02928ca3a0..4e61ce3275
--- a/internal/unifiedresources/registry.go
+++ b/internal/unifiedresources/registry.go
@@@ -92,15 -93,18 +93,20 @@@ type ResourceRegistry struct
matcher *IdentityMatcher
store ResourceStore
links []ResourceLink
- exclusions map[string]struct{}
+ exclusions map[string]time.Time // exclusionKey -> when the operator last split the pair
+ linksByID map[string][]ResourceLink
+ splitAgents map[string]nodeAgentLinkSide // node source ID -> the linked agent the operator split it from
identityPins *identityPinIndex
pbsBackups []models.PBSBackup
- // linkMergedIDs holds the resources a manual link folded into their
- // primary. They are still observed, so identity succession treats them
- // as live.
- linkMergedIDs map[string]struct{}
+ // linkFoldIndex maps each canonical ID a manual link folded into another
+ // resource to the rows that took it in (Resource.linkFolds). Folded
+ // resources are still observed, so identity succession treats them as
+ // live, and references to them resolve to the row holding them. Holders
+ // carry their folds, so a registry seeded from another registry's listing
+ // indexes the same ones. Entries are rows, not IDs, and are checked on
+ // read (linkFoldHoldersLocked): a holder folded away, replaced or re-keyed
+ // needs no bookkeeping.
+ linkFoldIndex map[string][]*Resource
// linkOwnPins holds the identity pin each side of a manual link derives
// from its own sources, captured before the link merged them. A nil
// value records a side with no pinnable identity. PersistIdentityPins