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.

Fold chained manual links the same way in any link order (#2793)

rcourtman4471dcaaba82
diff --cc internal/unifiedresources/monitor_adapter.go
index ed5930b9f8,c584ed2e13..e826bd1e72
--- a/internal/unifiedresources/monitor_adapter.go
+++ b/internal/unifiedresources/monitor_adapter.go
@@@ -487,8 -487,15 +487,15 @@@ func (a *MonitorAdapter) replaceRegistr
return
}
- rebuilt := NewRegistry(registry.store)
+ rebuilt := newRegistryFrom(registry)
staleThresholds := a.currentStaleThresholds()
+ // Operator links apply once the snapshot and every record source are in,
+ // so a chain is judged over the whole estate rather than folded as its
+ // members' sources arrive: a fold cannot be undone when a later source
+ // brings a member that outranks the earlier choice. Availability checks
+ // still come after the links, so a check linked to a folded resource
+ // projects onto its primary.
+ rebuilt.deferManualLinks = true
rebuilt.IngestSnapshotWithStaleThresholds(snapshot, staleThresholds)
sources := make([]DataSource, 0, len(recordsBySource))
for source := range recordsBySource {