@@ -8,12 +8,11 @@ import (
88 "strings"
99
1010 "github.com/sirupsen/logrus"
11- v1 "k8s.io/api/core/v1"
1211 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1312 "k8s.io/apimachinery/pkg/runtime"
1413 "k8s.io/utils/ptr"
1514 capv "sigs.k8s.io/cluster-api-provider-vsphere/apis/v1beta1"
16- capi "sigs.k8s.io/cluster-api/api/core/v1beta1 "
15+ capi "sigs.k8s.io/cluster-api/api/core/v1beta2 "
1716
1817 machinev1 "github.com/openshift/api/machine/v1beta1"
1918 "github.com/openshift/installer/pkg/asset"
@@ -206,10 +205,10 @@ func GenerateMachines(ctx context.Context, clusterID string, config *types.Insta
206205 Bootstrap : capi.Bootstrap {
207206 DataSecretName : ptr .To (fmt .Sprintf ("%s-%s" , clusterID , role )),
208207 },
209- InfrastructureRef : v1. ObjectReference {
210- APIVersion : capv . GroupVersion . String () ,
211- Kind : "VSphereMachine" ,
212- Name : vsphereMachine .Name ,
208+ InfrastructureRef : capi. ContractVersionedObjectReference {
209+ APIGroup : "infrastructure.cluster.x-k8s.io" ,
210+ Kind : "VSphereMachine" ,
211+ Name : vsphereMachine .Name ,
213212 },
214213 },
215214 }
@@ -273,10 +272,10 @@ func GenerateMachines(ctx context.Context, clusterID string, config *types.Insta
273272 Bootstrap : capi.Bootstrap {
274273 DataSecretName : ptr .To (fmt .Sprintf ("%s-bootstrap" , clusterID )),
275274 },
276- InfrastructureRef : v1. ObjectReference {
277- APIVersion : capv . GroupVersion . String () ,
278- Kind : "VSphereMachine" ,
279- Name : bootstrapVSphereMachine .Name ,
275+ InfrastructureRef : capi. ContractVersionedObjectReference {
276+ APIGroup : "infrastructure.cluster.x-k8s.io" ,
277+ Kind : "VSphereMachine" ,
278+ Name : bootstrapVSphereMachine .Name ,
280279 },
281280 },
282281 }
0 commit comments