@@ -77,7 +77,7 @@ var _ = Describe("Workload cluster creation", func() {
7777
7878 Context ("Creating a single control-plane cluster" , func () {
7979 It ("With 1 worker node" , func () {
80- cluster , _ , _ = clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
80+ result : = clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
8181 ClusterProxy : bootstrapClusterProxy ,
8282 ConfigCluster : clusterctl.ConfigClusterInput {
8383 LogFolder : filepath .Join (artifactFolder , "clusters" , bootstrapClusterProxy .GetName ()),
@@ -95,12 +95,13 @@ var _ = Describe("Workload cluster creation", func() {
9595 WaitForControlPlaneIntervals : e2eConfig .GetIntervals (specName , "wait-control-plane" ),
9696 WaitForMachineDeployments : e2eConfig .GetIntervals (specName , "wait-worker-nodes" ),
9797 })
98+ cluster = result .Cluster
9899 })
99100 })
100101
101102 Context ("Creating a highly available control-plane cluster" , func () {
102103 It ("With 3 control-plane nodes and 2 worker nodes" , func () {
103- cluster , _ , _ = clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
104+ result : = clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
104105 ClusterProxy : bootstrapClusterProxy ,
105106 ConfigCluster : clusterctl.ConfigClusterInput {
106107 LogFolder : filepath .Join (artifactFolder , "clusters" , bootstrapClusterProxy .GetName ()),
@@ -118,12 +119,13 @@ var _ = Describe("Workload cluster creation", func() {
118119 WaitForControlPlaneIntervals : e2eConfig .GetIntervals (specName , "wait-control-plane" ),
119120 WaitForMachineDeployments : e2eConfig .GetIntervals (specName , "wait-worker-nodes" ),
120121 })
122+ cluster = result .Cluster
121123
122124 Context ("Validating failure domains" , func () {
123125 AzureFailureDomainsSpec (ctx , func () AzureFailureDomainsSpecInput {
124126 return AzureFailureDomainsSpecInput {
125127 BootstrapClusterProxy : bootstrapClusterProxy ,
126- Cluster : cluster ,
128+ Cluster : result . Cluster ,
127129 Namespace : namespace ,
128130 ClusterName : clusterName ,
129131 }
@@ -164,7 +166,7 @@ var _ = Describe("Workload cluster creation", func() {
164166
165167 Context ("Creating a ipv6 control-plane cluster" , func () {
166168 It ("With ipv6 worker node" , func () {
167- cluster , _ , _ = clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
169+ result : = clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
168170 ClusterProxy : bootstrapClusterProxy ,
169171 ConfigCluster : clusterctl.ConfigClusterInput {
170172 LogFolder : filepath .Join (artifactFolder , "clusters" , bootstrapClusterProxy .GetName ()),
@@ -182,6 +184,7 @@ var _ = Describe("Workload cluster creation", func() {
182184 WaitForControlPlaneIntervals : e2eConfig .GetIntervals (specName , "wait-control-plane" ),
183185 WaitForMachineDeployments : e2eConfig .GetIntervals (specName , "wait-worker-nodes" ),
184186 })
187+ cluster = result .Cluster
185188
186189 Context ("Creating an accessible ipv6 load balancer" , func () {
187190 AzureLBSpec (ctx , func () AzureLBSpecInput {
0 commit comments