@@ -28,7 +28,7 @@ import (
2828	. "github.com/onsi/gomega" 
2929	"k8s.io/apimachinery/pkg/types" 
3030	"k8s.io/utils/ptr" 
31- 	clusterv1beta1  "sigs.k8s.io/cluster-api/api/core/v1beta1 " 
31+ 	clusterv1  "sigs.k8s.io/cluster-api/api/core/v1beta2 " 
3232	"sigs.k8s.io/cluster-api/test/framework" 
3333	"sigs.k8s.io/controller-runtime/pkg/client" 
3434
@@ -38,8 +38,8 @@ import (
3838
3939type  AKSMachinePoolSpecInput  struct  {
4040	MgmtCluster    framework.ClusterProxy 
41- 	Cluster        * clusterv1beta1 .Cluster 
42- 	MachinePools   []* clusterv1beta1 .MachinePool 
41+ 	Cluster        * clusterv1 .Cluster 
42+ 	MachinePools   []* clusterv1 .MachinePool 
4343	WaitIntervals  []interface {}
4444}
4545
@@ -49,7 +49,7 @@ func AKSMachinePoolSpec(ctx context.Context, inputGetter func() AKSMachinePoolSp
4949
5050	for  _ , mp  :=  range  input .MachinePools  {
5151		wg .Add (1 )
52- 		go  func (mp  * clusterv1beta1 .MachinePool ) {
52+ 		go  func (mp  * clusterv1 .MachinePool ) {
5353			defer  GinkgoRecover ()
5454			defer  wg .Done ()
5555
@@ -60,7 +60,7 @@ func AKSMachinePoolSpec(ctx context.Context, inputGetter func() AKSMachinePoolSp
6060				ClusterProxy :              input .MgmtCluster ,
6161				Cluster :                   input .Cluster ,
6262				Replicas :                  ptr .Deref (mp .Spec .Replicas , 0 ) +  1 ,
63- 				MachinePools :              []* clusterv1beta1 .MachinePool {mp },
63+ 				MachinePools :              []* clusterv1 .MachinePool {mp },
6464				WaitForMachinePoolToScale : input .WaitIntervals ,
6565			})
6666
@@ -69,7 +69,7 @@ func AKSMachinePoolSpec(ctx context.Context, inputGetter func() AKSMachinePoolSp
6969				ClusterProxy :              input .MgmtCluster ,
7070				Cluster :                   input .Cluster ,
7171				Replicas :                  ptr .Deref (mp .Spec .Replicas , 0 ) -  1 ,
72- 				MachinePools :              []* clusterv1beta1 .MachinePool {mp },
72+ 				MachinePools :              []* clusterv1 .MachinePool {mp },
7373				WaitForMachinePoolToScale : input .WaitIntervals ,
7474			})
7575
@@ -118,7 +118,7 @@ func AKSMachinePoolSpec(ctx context.Context, inputGetter func() AKSMachinePoolSp
118118					ClusterProxy :              input .MgmtCluster ,
119119					Cluster :                   input .Cluster ,
120120					Replicas :                  0 ,
121- 					MachinePools :              []* clusterv1beta1 .MachinePool {mp },
121+ 					MachinePools :              []* clusterv1 .MachinePool {mp },
122122					WaitForMachinePoolToScale : input .WaitIntervals ,
123123				})
124124			}
@@ -128,7 +128,7 @@ func AKSMachinePoolSpec(ctx context.Context, inputGetter func() AKSMachinePoolSp
128128				ClusterProxy :              input .MgmtCluster ,
129129				Cluster :                   input .Cluster ,
130130				Replicas :                  originalReplicas ,
131- 				MachinePools :              []* clusterv1beta1 .MachinePool {mp },
131+ 				MachinePools :              []* clusterv1 .MachinePool {mp },
132132				WaitForMachinePoolToScale : input .WaitIntervals ,
133133			})
134134		}(mp )
0 commit comments