@@ -41,13 +41,12 @@ import (
41
41
ekscontrolplanev1 "sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta2"
42
42
"sigs.k8s.io/cluster-api-provider-aws/v2/pkg/logger"
43
43
"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"
45
45
bsutil "sigs.k8s.io/cluster-api/bootstrap/util"
46
- expclusterv1 "sigs.k8s.io/cluster-api/exp/api/v1beta1"
47
46
"sigs.k8s.io/cluster-api/feature"
48
47
"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"
51
50
"sigs.k8s.io/cluster-api/util/predicates"
52
51
)
53
52
@@ -301,7 +300,7 @@ func (r *EKSConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Man
301
300
302
301
if feature .Gates .Enabled (feature .MachinePool ) {
303
302
b = b .Watches (
304
- & expclusterv1 .MachinePool {},
303
+ & clusterv1 .MachinePool {},
305
304
handler .EnqueueRequestsFromMapFunc (r .MachinePoolToBootstrapMapFunc ),
306
305
)
307
306
}
@@ -382,7 +381,7 @@ func (r *EKSConfigReconciler) MachineToBootstrapMapFunc(_ context.Context, o cli
382
381
func (r * EKSConfigReconciler ) MachinePoolToBootstrapMapFunc (_ context.Context , o client.Object ) []ctrl.Request {
383
382
result := []ctrl.Request {}
384
383
385
- m , ok := o .(* expclusterv1 .MachinePool )
384
+ m , ok := o .(* clusterv1 .MachinePool )
386
385
if ! ok {
387
386
klog .Errorf ("Expected a MachinePool but got a %T" , o )
388
387
}
0 commit comments