Skip to content

Commit

Permalink
Address some review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Mar 26, 2024
1 parent e1b19ec commit 67441f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ func (r *PackageVariantReconciler) SetupWithManager(mgr ctrl.Manager) error {
func mapObjectsToRequests(mgrClient client.Reader) handler.MapFunc {
return func(ctx context.Context, obj client.Object) []reconcile.Request {
attachedPackageVariants := &api.PackageVariantList{}
err := mgrClient.List(context.TODO(), attachedPackageVariants, &client.ListOptions{
err := mgrClient.List(ctx, attachedPackageVariants, &client.ListOptions{
Namespace: obj.GetNamespace(),
})
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func (r *PackageVariantSetReconciler) SetupWithManager(mgr ctrl.Manager) error {
func mapObjectsToRequests(mgrClient client.Reader) handler.MapFunc {
return func(ctx context.Context, obj client.Object) []reconcile.Request {
attachedPackageVariants := &api.PackageVariantSetList{}
err := mgrClient.List(context.TODO(), attachedPackageVariants, &client.ListOptions{
err := mgrClient.List(ctx, attachedPackageVariants, &client.ListOptions{
Namespace: obj.GetNamespace(),
})
if err != nil {
Expand Down

0 comments on commit 67441f9

Please sign in to comment.