Close factory after use
@@ -447,6 +447,7 @@ func updateClusterMetadataConfig(
nil,
logger,
)
+ defer factory.Close()
clusterMetadataManager, err := factory.NewClusterMetadataManager()
if err != nil {
@@ -511,6 +512,7 @@ func initSystemNamespaces(
nil,
logger,
)
+ defer factory.Close()
metadataManager, err := factory.NewMetadataManager()
if err != nil {
