fix: PBS storage incorrectly showing on wrong nodes (addresses #403)

PBS storage was being marked as shared when it shouldn't be. Each PBS
namespace is node-specific even when connecting to the same PBS server.
Now PBS storage correctly shows under its respective node instead of
all being assigned to the last node.
This commit is contained in:
Pulse Monitor
2025-09-04 15:49:20 +00:00
parent 7dc8a8c85a
commit 8bd2187971
+2 -1
View File
@@ -1991,7 +1991,8 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,
clusterConfig, hasClusterConfig := clusterStorageMap[storage.Storage]
// Determine if shared
shared := hasClusterConfig && clusterConfig.Shared == 1
// PBS storage is never shared - each node has its own namespace even if connecting to the same PBS
shared := hasClusterConfig && clusterConfig.Shared == 1 && storage.Type != "pbs"
// For shared storage, only include it once
storageKey := storage.Storage