@@ -1421,8 +1421,8 @@ func TestReconcileLoadBalancers(t *testing.T) {
14211421 },
14221422 Cluster : & clusterv1.Cluster {
14231423 Spec : clusterv1.ClusterSpec {
1424- ClusterNetwork : & clusterv1.ClusterNetwork {
1425- APIServerPort : & clusterNetworkAPIServerPort ,
1424+ ClusterNetwork : clusterv1.ClusterNetwork {
1425+ APIServerPort : clusterNetworkAPIServerPort ,
14261426 },
14271427 },
14281428 },
@@ -1472,8 +1472,8 @@ func TestReconcileLoadBalancers(t *testing.T) {
14721472 },
14731473 Cluster : & clusterv1.Cluster {
14741474 Spec : clusterv1.ClusterSpec {
1475- ClusterNetwork : & clusterv1.ClusterNetwork {
1476- APIServerPort : & clusterAPIServerPort ,
1475+ ClusterNetwork : clusterv1.ClusterNetwork {
1476+ APIServerPort : clusterAPIServerPort ,
14771477 },
14781478 },
14791479 },
@@ -1523,8 +1523,8 @@ func TestReconcileLoadBalancers(t *testing.T) {
15231523 },
15241524 Cluster : & clusterv1.Cluster {
15251525 Spec : clusterv1.ClusterSpec {
1526- ClusterNetwork : & clusterv1.ClusterNetwork {
1527- APIServerPort : & clusterAPIServerPort ,
1526+ ClusterNetwork : clusterv1.ClusterNetwork {
1527+ APIServerPort : clusterAPIServerPort ,
15281528 },
15291529 },
15301530 },
@@ -1671,8 +1671,8 @@ func TestCreateLoadbalancer(t *testing.T) {
16711671 },
16721672 Cluster : & clusterv1.Cluster {
16731673 Spec : clusterv1.ClusterSpec {
1674- ClusterNetwork : & clusterv1.ClusterNetwork {
1675- APIServerPort : & clusterAPIServerPort ,
1674+ ClusterNetwork : clusterv1.ClusterNetwork {
1675+ APIServerPort : clusterAPIServerPort ,
16761676 },
16771677 },
16781678 },
@@ -1730,8 +1730,8 @@ func TestCreateLoadbalancer(t *testing.T) {
17301730 },
17311731 Cluster : & clusterv1.Cluster {
17321732 Spec : clusterv1.ClusterSpec {
1733- ClusterNetwork : & clusterv1.ClusterNetwork {
1734- APIServerPort : & clusterAPIServerPort ,
1733+ ClusterNetwork : clusterv1.ClusterNetwork {
1734+ APIServerPort : clusterAPIServerPort ,
17351735 },
17361736 },
17371737 },
@@ -1770,8 +1770,8 @@ func TestCheckLoadBalancerPort(t *testing.T) {
17701770 clusterScope := PowerVSClusterScope {
17711771 Cluster : & clusterv1.Cluster {
17721772 Spec : clusterv1.ClusterSpec {
1773- ClusterNetwork : & clusterv1.ClusterNetwork {
1774- APIServerPort : ptr . To ( int32 (port ) ),
1773+ ClusterNetwork : clusterv1.ClusterNetwork {
1774+ APIServerPort : int32 (port ),
17751775 },
17761776 },
17771777 },
@@ -1792,8 +1792,8 @@ func TestCheckLoadBalancerPort(t *testing.T) {
17921792 clusterScope := PowerVSClusterScope {
17931793 Cluster : & clusterv1.Cluster {
17941794 Spec : clusterv1.ClusterSpec {
1795- ClusterNetwork : & clusterv1.ClusterNetwork {
1796- APIServerPort : ptr . To ( int32 (8080 ) ),
1795+ ClusterNetwork : clusterv1.ClusterNetwork {
1796+ APIServerPort : int32 (8080 ),
17971797 },
17981798 },
17991799 },
@@ -2555,7 +2555,7 @@ func TestReconcileVPC(t *testing.T) {
25552555
25562556 clusterScope := PowerVSClusterScope {
25572557 IBMVPCClient : mockVPC ,
2558- Cluster : & clusterv1.Cluster {Spec : clusterv1. ClusterSpec { ClusterNetwork : nil } },
2558+ Cluster : & clusterv1.Cluster {},
25592559 IBMPowerVSCluster : & infrav1.IBMPowerVSCluster {Spec : infrav1.IBMPowerVSClusterSpec {
25602560 ResourceGroup : & infrav1.IBMPowerVSResourceReference {ID : ptr .To ("resourceGroupID" )}}},
25612561 }
@@ -2712,7 +2712,7 @@ func TestPowerVSScopeCreateVPC(t *testing.T) {
27122712
27132713 clusterScope := PowerVSClusterScope {
27142714 IBMVPCClient : mockVPC ,
2715- Cluster : & clusterv1.Cluster {Spec : clusterv1. ClusterSpec { ClusterNetwork : nil } },
2715+ Cluster : & clusterv1.Cluster {},
27162716 IBMPowerVSCluster : & infrav1.IBMPowerVSCluster {Spec : infrav1.IBMPowerVSClusterSpec {
27172717 ResourceGroup : & infrav1.IBMPowerVSResourceReference {ID : ptr .To ("resourceGroupID" )}}},
27182718 }
@@ -2732,7 +2732,7 @@ func TestPowerVSScopeCreateVPC(t *testing.T) {
27322732
27332733 clusterScope := PowerVSClusterScope {
27342734 IBMVPCClient : mockVPC ,
2735- Cluster : & clusterv1.Cluster {Spec : clusterv1. ClusterSpec { ClusterNetwork : nil } },
2735+ Cluster : & clusterv1.Cluster {},
27362736 IBMPowerVSCluster : & infrav1.IBMPowerVSCluster {Spec : infrav1.IBMPowerVSClusterSpec {
27372737 ResourceGroup : & infrav1.IBMPowerVSResourceReference {ID : ptr .To ("resourceGroupID" )}}},
27382738 }
0 commit comments