Skip to content

Commit e4550b5

Browse files
committed
fix: prevent list accumulation in multi-namespace cache implementation
Signed-off-by: Xuhui zhang <xuhui@juicedata.io>
1 parent 6ad5c1d commit e4550b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/cache/multi_namespace_cache.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,7 @@ func (c *multiNamespaceCache) List(ctx context.Context, list client.ObjectList,
279279
return err
280280
}
281281

282-
allItems, err := apimeta.ExtractList(list)
283-
if err != nil {
284-
return err
285-
}
282+
allItems := []runtime.Object{}
286283

287284
limitSet := listOpts.Limit > 0
288285

0 commit comments

Comments
 (0)