@@ -134,17 +134,17 @@ func (r *AWSManagedClusterReconciler) SetupWithManager(ctx context.Context, mgr
134134
135135 // Add a watch for clusterv1.Cluster unpaise
136136 if err = controller .Watch (
137- source .Kind (mgr .GetCache (), & clusterv1.Cluster {}) ,
138- handler .EnqueueRequestsFromMapFunc (util .ClusterToInfrastructureMapFunc (ctx , infrav1 .GroupVersion .WithKind ("AWSManagedCluster" ), mgr .GetClient (), & infrav1.AWSManagedCluster {})),
139- predicates .ClusterUnpaused (log .GetLogger ()),
137+ source .Kind [client. Object ] (mgr .GetCache (), & clusterv1.Cluster {},
138+ handler .EnqueueRequestsFromMapFunc (util .ClusterToInfrastructureMapFunc (ctx , infrav1 .GroupVersion .WithKind ("AWSManagedCluster" ), mgr .GetClient (), & infrav1.AWSManagedCluster {})),
139+ predicates .ClusterUnpaused (log .GetLogger () )),
140140 ); err != nil {
141141 return fmt .Errorf ("failed adding a watch for ready clusters: %w" , err )
142142 }
143143
144144 // Add a watch for AWSManagedControlPlane
145145 if err = controller .Watch (
146- source .Kind (mgr .GetCache (), & ekscontrolplanev1.AWSManagedControlPlane {}) ,
147- handler .EnqueueRequestsFromMapFunc (r .managedControlPlaneToManagedCluster (ctx , log )),
146+ source .Kind [client. Object ] (mgr .GetCache (), & ekscontrolplanev1.AWSManagedControlPlane {},
147+ handler .EnqueueRequestsFromMapFunc (r .managedControlPlaneToManagedCluster (ctx , log ) )),
148148 ); err != nil {
149149 return fmt .Errorf ("failed adding watch on AWSManagedControlPlane: %w" , err )
150150 }
0 commit comments