@@ -243,6 +243,36 @@ var _ = Describe("Workload cluster creation", func() {
243243 })
244244 })
245245
246+ // Skipping the test case for now. The internal load balancer test case requires the management cluster
247+ // to have access to network that the cluster being created is in.
248+ // An option to reach that is to use a GKE cluster as the management cluster.
249+ Context ("Creating a control-plane cluster with three control plane nodes and an internal load balancer" , func () {
250+ It ("Should create a cluster with 3 control-plane and 1 worker node with an internal load balancer" , func () {
251+ Skip ("This test requires a bootstrap cluster that has access to the network where the cluster is being created." )
252+
253+ clusterName := fmt .Sprintf ("%s-internal-lb" , clusterNamePrefix )
254+ By ("Creating a cluster with internal load balancer from GKE bootstrap cluster" )
255+ clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
256+ ClusterProxy : bootstrapClusterProxy ,
257+ ConfigCluster : clusterctl.ConfigClusterInput {
258+ LogFolder : clusterctlLogFolder ,
259+ ClusterctlConfigPath : clusterctlConfigPath ,
260+ KubeconfigPath : bootstrapClusterProxy .GetKubeconfigPath (),
261+ InfrastructureProvider : clusterctl .DefaultInfrastructureProvider ,
262+ Flavor : "ci-with-internal-lb" ,
263+ Namespace : namespace .Name ,
264+ ClusterName : clusterName ,
265+ KubernetesVersion : e2eConfig .MustGetVariable (KubernetesVersion ),
266+ ControlPlaneMachineCount : ptr.To [int64 ](3 ),
267+ WorkerMachineCount : ptr.To [int64 ](1 ),
268+ },
269+ WaitForClusterIntervals : e2eConfig .GetIntervals (specName , "wait-cluster" ),
270+ WaitForControlPlaneIntervals : e2eConfig .GetIntervals (specName , "wait-control-plane" ),
271+ WaitForMachineDeployments : e2eConfig .GetIntervals (specName , "wait-worker-nodes" ),
272+ }, result )
273+ })
274+ })
275+
246276 Context ("Creating a cluster using a cluster class" , func () {
247277 It ("Should create a cluster class and then a cluster based on it" , func () {
248278 clusterName := fmt .Sprintf ("%s-topology" , clusterNamePrefix )
0 commit comments