Skip to content

Commit

Permalink
Fix override DefaultFieldSelector for CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaZivkovic committed Feb 11, 2025
1 parent e68fb4c commit dcab070
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,8 @@ func main() {

//override DefaultFieldSelector for CRD
cacheOpts.ByObject = map[client.Object]cache.ByObject{
&multiarchv1beta1.ClusterPodPlacementConfig{}: {
// Override to remove any field selector for this resource
Field: fields.Everything(),
},
&multiarchv1alpha1.ClusterPodPlacementConfig{}: {
// Override to remove any field selector for this resource
Field: fields.Everything(),
&corev1.Pod{}: {
Field: fields.OneTermEqualSelector("status.phase", "Pending"),
},
}
}
Expand Down

0 comments on commit dcab070

Please sign in to comment.