Skip to content

Commit

Permalink
Adapt handler.EnqueueRequestForOwner signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ary1992 committed Jun 20, 2023
1 parent 8c13195 commit 3cff0a2
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions pkg/controllermanager/controller/managedseedset/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,23 @@ func (r *Reconciler) AddToManager(mgr manager.Manager) error {
MaxConcurrentReconciles: pointer.IntDeref(r.Config.ConcurrentSyncs, 0),
}).
Watches(
&source.Kind{Type: &gardencorev1beta1.Shoot{}},
&handler.EnqueueRequestForOwner{
OwnerType: &seedmanagementv1alpha1.ManagedSeedSet{},
IsController: true,
},
&gardencorev1beta1.Shoot{},
handler.EnqueueRequestForOwner(
mgr.GetScheme(),
mgr.GetRESTMapper(),
&seedmanagementv1alpha1.ManagedSeedSet{},
handler.OnlyControllerOwner(),
),
builder.WithPredicates(r.ShootPredicate()),
).
Watches(
&source.Kind{Type: &seedmanagementv1alpha1.ManagedSeed{}},
&handler.EnqueueRequestForOwner{
OwnerType: &seedmanagementv1alpha1.ManagedSeedSet{},
IsController: true,
},
&seedmanagementv1alpha1.ManagedSeed{},
handler.EnqueueRequestForOwner(
mgr.GetScheme(),
mgr.GetRESTMapper(),
&seedmanagementv1alpha1.ManagedSeedSet{},
handler.OnlyControllerOwner(),
),
builder.WithPredicates(r.ManagedSeedPredicate()),
).
Build(r)
Expand Down

0 comments on commit 3cff0a2

Please sign in to comment.