@@ -22,16 +22,15 @@ import (
2222
2323 "sigs.k8s.io/cluster-api-provider-gcp/util/location"
2424
25- "sigs.k8s.io/cluster-api/util/conditions"
25+ "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/ conditions"
2626
2727 container "cloud.google.com/go/container/apiv1"
2828 credentials "cloud.google.com/go/iam/credentials/apiv1"
2929 resourcemanager "cloud.google.com/go/resourcemanager/apiv3"
3030 "github.com/pkg/errors"
3131 infrav1exp "sigs.k8s.io/cluster-api-provider-gcp/exp/api/v1beta1"
32- clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
33- clusterv1exp "sigs.k8s.io/cluster-api/exp/api/v1beta1"
34- "sigs.k8s.io/cluster-api/util/patch"
32+ clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
33+ patch "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/patch"
3534 "sigs.k8s.io/controller-runtime/pkg/client"
3635)
3736
@@ -123,7 +122,7 @@ type ManagedControlPlaneScope struct {
123122 credentialsClient * credentials.IamCredentialsClient
124123 credential * Credential
125124
126- AllMachinePools []clusterv1exp .MachinePool
125+ AllMachinePools []clusterv1 .MachinePool
127126 AllManagedMachinePools []infrav1exp.GCPManagedMachinePool
128127}
129128
@@ -179,14 +178,14 @@ func (s *ManagedControlPlaneScope) GetCredential() *Credential {
179178}
180179
181180// GetAllNodePools gets all node pools for the control plane.
182- func (s * ManagedControlPlaneScope ) GetAllNodePools (ctx context.Context ) ([]infrav1exp.GCPManagedMachinePool , []clusterv1exp .MachinePool , error ) {
181+ func (s * ManagedControlPlaneScope ) GetAllNodePools (ctx context.Context ) ([]infrav1exp.GCPManagedMachinePool , []clusterv1 .MachinePool , error ) {
183182 if len (s .AllManagedMachinePools ) == 0 {
184183 listOptions := []client.ListOption {
185184 client .InNamespace (s .GCPManagedControlPlane .Namespace ),
186185 client .MatchingLabels (map [string ]string {clusterv1 .ClusterNameLabel : s .Cluster .Name }),
187186 }
188187
189- machinePoolList := & clusterv1exp .MachinePoolList {}
188+ machinePoolList := & clusterv1 .MachinePoolList {}
190189 if err := s .client .List (ctx , machinePoolList , listOptions ... ); err != nil {
191190 return nil , nil , err
192191 }
0 commit comments