diff --git a/util/util.go b/util/util.go index 3b624ab624c9..b96f7b64ef0c 100644 --- a/util/util.go +++ b/util/util.go @@ -501,7 +501,14 @@ func ClusterToObjectsMapper(c client.Client, ro runtime.Object, scheme *runtime. list := &unstructured.UnstructuredList{} list.SetGroupVersionKind(gvk) - if err := c.List(context.TODO(), list, client.MatchingLabels{clusterv1.ClusterLabelName: cluster.Name}); err != nil { + if err := c.List( + context.TODO(), + list, + client.InNamespace(cluster.Namespace), + client.MatchingLabels{ + clusterv1.ClusterLabelName: cluster.Name, + }, + ); err != nil { return nil }