From df2a249930e6d5b7d22639265cacd7f70e4559d4 Mon Sep 17 00:00:00 2001 From: Iceber Gu Date: Wed, 20 Nov 2024 13:50:15 +0800 Subject: [PATCH] memorystorage: fix deleting cluster info when cleaning a resource Signed-off-by: Iceber Gu --- pkg/storage/memorystorage/memory_storage.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/storage/memorystorage/memory_storage.go b/pkg/storage/memorystorage/memory_storage.go index 0938d9162..1f71149ba 100644 --- a/pkg/storage/memorystorage/memory_storage.go +++ b/pkg/storage/memorystorage/memory_storage.go @@ -94,7 +94,6 @@ func (s *StorageFactory) CleanClusterResource(ctx context.Context, cluster strin if rs, ok := storages.resourceStorages[gvr]; ok { rs.CrvSynchro.RemoveCluster(cluster) rs.watchCache.CleanCluster(cluster) - delete(s.clusters, cluster) } return nil