Skip to content

Commit 9a1ad02

Browse files
author
Ryan Zhang
committed
fix
1 parent e820b84 commit 9a1ad02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/clusterresourceplacement/resource_selector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func convertResourceSelector(old []fleetv1alpha1.ClusterResourceSelector) []flee
121121
}
122122

123123
// gatherSelectedResource gets all the resources according to the resource selector.
124-
// TODO: treat the RP differently
124+
// TODO: treat the RP selector differently to not allow RP to select cluster scoped resources
125125
func (r *Reconciler) gatherSelectedResource(placement string, selectors []fleetv1beta1.ClusterResourceSelector) ([]*unstructured.Unstructured, error) {
126126
var resources []*unstructured.Unstructured
127127
var resourceMap = make(map[fleetv1beta1.ResourceIdentifier]bool)

0 commit comments

Comments
 (0)