@@ -206,4 +206,28 @@ var _ = Describe("Workload cluster creation", func() {
206
206
}, result )
207
207
})
208
208
})
209
+
210
+ Context ("Creating a cluster using a cluster class" , func () {
211
+ It ("Should create a cluster class and then a cluster based on it" , func () {
212
+ By ("Creating a cluster from a topology" )
213
+ clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
214
+ ClusterProxy : bootstrapClusterProxy ,
215
+ ConfigCluster : clusterctl.ConfigClusterInput {
216
+ LogFolder : clusterctlLogFolder ,
217
+ ClusterctlConfigPath : clusterctlConfigPath ,
218
+ KubeconfigPath : bootstrapClusterProxy .GetKubeconfigPath (),
219
+ InfrastructureProvider : clusterctl .DefaultInfrastructureProvider ,
220
+ Flavor : "ci-topology" ,
221
+ Namespace : namespace .Name ,
222
+ ClusterName : clusterName ,
223
+ KubernetesVersion : e2eConfig .GetVariable (KubernetesVersion ),
224
+ ControlPlaneMachineCount : ptr.To [int64 ](1 ),
225
+ WorkerMachineCount : ptr.To [int64 ](1 ),
226
+ },
227
+ WaitForClusterIntervals : e2eConfig .GetIntervals (specName , "wait-cluster" ),
228
+ WaitForControlPlaneIntervals : e2eConfig .GetIntervals (specName , "wait-control-plane" ),
229
+ WaitForMachineDeployments : e2eConfig .GetIntervals (specName , "wait-worker-nodes" ),
230
+ }, result )
231
+ })
232
+ })
209
233
})
0 commit comments