@@ -205,6 +205,51 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
205
205
})
206
206
})
207
207
208
+ Describe ("Workload cluster (flatcar-sysext)" , func () {
209
+ It ("should be creatable and deletable" , func () {
210
+ // Flatcar default user is "core"
211
+ shared .SetEnvVar (shared .SSHUserMachine , "core" , false )
212
+
213
+ shared .Logf ("Creating a cluster" )
214
+ clusterName := fmt .Sprintf ("cluster-%s" , namespace .Name )
215
+ configCluster := defaultConfigCluster (clusterName , namespace .Name )
216
+ configCluster .ControlPlaneMachineCount = pointer .Int64 (3 )
217
+ configCluster .WorkerMachineCount = pointer .Int64 (1 )
218
+ configCluster .Flavor = shared .FlavorFlatcarSysext
219
+ createCluster (ctx , configCluster , clusterResources )
220
+ md := clusterResources .MachineDeployments
221
+
222
+ workerMachines := framework .GetMachinesByMachineDeployments (ctx , framework.GetMachinesByMachineDeploymentsInput {
223
+ Lister : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
224
+ ClusterName : clusterName ,
225
+ Namespace : namespace .Name ,
226
+ MachineDeployment : * md [0 ],
227
+ })
228
+ controlPlaneMachines := framework .GetControlPlaneMachinesByCluster (ctx , framework.GetControlPlaneMachinesByClusterInput {
229
+ Lister : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
230
+ ClusterName : clusterName ,
231
+ Namespace : namespace .Name ,
232
+ })
233
+ Expect (workerMachines ).To (HaveLen (1 ))
234
+ Expect (controlPlaneMachines ).To (HaveLen (3 ))
235
+
236
+ shared .Logf ("Waiting for worker nodes to be in Running phase" )
237
+ statusChecks := []framework.MachineStatusCheck {framework .MachinePhaseCheck (string (clusterv1 .MachinePhaseRunning ))}
238
+ machineStatusInput := framework.WaitForMachineStatusCheckInput {
239
+ Getter : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
240
+ Machine : & workerMachines [0 ],
241
+ StatusChecks : statusChecks ,
242
+ }
243
+ framework .WaitForMachineStatusCheck (ctx , machineStatusInput , e2eCtx .E2EConfig .GetIntervals (specName , "wait-machine-status" )... )
244
+
245
+ workloadCluster := e2eCtx .Environment .BootstrapClusterProxy .GetWorkloadCluster (ctx , namespace .Name , clusterName )
246
+
247
+ waitForDaemonSetRunning (ctx , workloadCluster .GetClient (), "kube-system" , "openstack-cloud-controller-manager" )
248
+
249
+ waitForNodesReadyWithoutCCMTaint (ctx , workloadCluster .GetClient (), 4 )
250
+ })
251
+ })
252
+
208
253
Describe ("Workload cluster (without lb)" , func () {
209
254
It ("Should create port(s) with custom options" , func () {
210
255
shared .Logf ("Creating a cluster" )
0 commit comments