@@ -1607,10 +1607,10 @@ func TestGetAzureClusterFromCluster(t *testing.T) {
16071607 cluster : & clusterv1.Cluster {
16081608 ObjectMeta : metav1.ObjectMeta {Name : "cluster" , Namespace : "default" },
16091609 Spec : clusterv1.ClusterSpec {
1610- InfrastructureRef : & corev1. ObjectReference {
1611- Kind : infrav1 .AzureClusterKind ,
1612- Name : "azure-cluster" ,
1613- Namespace : "default" ,
1610+ InfrastructureRef : clusterv1. ContractVersionedObjectReference {
1611+ Kind : infrav1 .AzureClusterKind ,
1612+ Name : "azure-cluster" ,
1613+ APIGroup : infrav1 . GroupVersion . Group ,
16141614 },
16151615 },
16161616 },
@@ -1633,10 +1633,10 @@ func TestGetAzureClusterFromCluster(t *testing.T) {
16331633 cluster : & clusterv1.Cluster {
16341634 ObjectMeta : metav1.ObjectMeta {Name : "cluster" , Namespace : "default" },
16351635 Spec : clusterv1.ClusterSpec {
1636- InfrastructureRef : & corev1. ObjectReference {
1637- Kind : infrav1 .AzureManagedClusterKind ,
1638- Name : "azure-managed-cluster" ,
1639- Namespace : "default" ,
1636+ InfrastructureRef : clusterv1. ContractVersionedObjectReference {
1637+ Kind : infrav1 .AzureManagedClusterKind ,
1638+ Name : "azure-managed-cluster" ,
1639+ APIGroup : infrav1 . GroupVersion . Group ,
16401640 },
16411641 },
16421642 },
@@ -1648,10 +1648,10 @@ func TestGetAzureClusterFromCluster(t *testing.T) {
16481648 cluster : & clusterv1.Cluster {
16491649 ObjectMeta : metav1.ObjectMeta {Name : "cluster" , Namespace : "default" },
16501650 Spec : clusterv1.ClusterSpec {
1651- InfrastructureRef : & corev1. ObjectReference {
1652- Kind : infrav1 .AzureClusterKind ,
1653- Name : "missing-cluster" ,
1654- Namespace : "default" ,
1651+ InfrastructureRef : clusterv1. ContractVersionedObjectReference {
1652+ Kind : infrav1 .AzureClusterKind ,
1653+ Name : "missing-cluster" ,
1654+ APIGroup : infrav1 . GroupVersion . Group ,
16551655 },
16561656 },
16571657 },
0 commit comments