@@ -41,13 +41,12 @@ import (
4141 ekscontrolplanev1 "sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta2"
4242 "sigs.k8s.io/cluster-api-provider-aws/v2/pkg/logger"
4343 "sigs.k8s.io/cluster-api-provider-aws/v2/util/paused"
44- clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
44+ clusterv1 "sigs.k8s.io/cluster-api/api/core/ v1beta1"
4545 bsutil "sigs.k8s.io/cluster-api/bootstrap/util"
46- expclusterv1 "sigs.k8s.io/cluster-api/exp/api/v1beta1"
4746 "sigs.k8s.io/cluster-api/feature"
4847 "sigs.k8s.io/cluster-api/util"
49- "sigs.k8s.io/cluster-api/util/conditions"
50- "sigs.k8s.io/cluster-api/util/patch"
48+ "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/ conditions"
49+ patch "sigs.k8s.io/cluster-api/util/deprecated/v1beta1 /patch"
5150 "sigs.k8s.io/cluster-api/util/predicates"
5251)
5352
@@ -301,7 +300,7 @@ func (r *EKSConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Man
301300
302301 if feature .Gates .Enabled (feature .MachinePool ) {
303302 b = b .Watches (
304- & expclusterv1 .MachinePool {},
303+ & clusterv1 .MachinePool {},
305304 handler .EnqueueRequestsFromMapFunc (r .MachinePoolToBootstrapMapFunc ),
306305 )
307306 }
@@ -382,7 +381,7 @@ func (r *EKSConfigReconciler) MachineToBootstrapMapFunc(_ context.Context, o cli
382381func (r * EKSConfigReconciler ) MachinePoolToBootstrapMapFunc (_ context.Context , o client.Object ) []ctrl.Request {
383382 result := []ctrl.Request {}
384383
385- m , ok := o .(* expclusterv1 .MachinePool )
384+ m , ok := o .(* clusterv1 .MachinePool )
386385 if ! ok {
387386 klog .Errorf ("Expected a MachinePool but got a %T" , o )
388387 }
0 commit comments