@@ -22,7 +22,6 @@ package unmanaged
22
22
import (
23
23
"context"
24
24
"fmt"
25
- "os"
26
25
"path/filepath"
27
26
"strings"
28
27
"time"
@@ -547,51 +546,6 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
547
546
})
548
547
})
549
548
550
- ginkgo .Describe ("Workload cluster in multiple AZs" , func () {
551
- ginkgo .It ("It should be creatable and deletable" , func () {
552
- specName := "functional-test-multi-az"
553
- requiredResources = & shared.TestResource {EC2Normal : 3 * e2eCtx .Settings .InstanceVCPU , IGW : 1 , NGW : 1 , VPC : 1 , ClassicLB : 1 , EIP : 3 }
554
- requiredResources .WriteRequestedResources (e2eCtx , specName )
555
- Expect (shared .AcquireResources (requiredResources , config .GinkgoConfig .ParallelNode , flock .New (shared .ResourceQuotaFilePath ))).To (Succeed ())
556
- defer shared .ReleaseResources (requiredResources , config .GinkgoConfig .ParallelNode , flock .New (shared .ResourceQuotaFilePath ))
557
- namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
558
- defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
559
- ginkgo .By ("Creating a cluster" )
560
- clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
561
- configCluster := defaultConfigCluster (clusterName , namespace .Name )
562
- configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (3 )
563
- configCluster .Flavor = shared .MultiAzFlavor
564
- cluster , _ , _ := createCluster (ctx , configCluster , result )
565
-
566
- ginkgo .By ("Adding worker nodes to additional subnets" )
567
- mdName1 := clusterName + "-md-1"
568
- mdName2 := clusterName + "-md-2"
569
- md1 := makeMachineDeployment (namespace .Name , mdName1 , clusterName , 1 )
570
- md2 := makeMachineDeployment (namespace .Name , mdName2 , clusterName , 1 )
571
- az1 := os .Getenv (shared .AwsAvailabilityZone1 )
572
- az2 := os .Getenv (shared .AwsAvailabilityZone2 )
573
-
574
- // private CIDRs set in cluster-template-multi-az.yaml.
575
- framework .CreateMachineDeployment (ctx , framework.CreateMachineDeploymentInput {
576
- Creator : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
577
- MachineDeployment : md1 ,
578
- BootstrapConfigTemplate : makeJoinBootstrapConfigTemplate (namespace .Name , mdName1 ),
579
- InfraMachineTemplate : makeAWSMachineTemplate (namespace .Name , mdName1 , e2eCtx .E2EConfig .GetVariable (shared .AwsNodeMachineType ), pointer .StringPtr (az1 ), getSubnetID ("cidr-block" , "10.0.0.0/24" , clusterName )),
580
- })
581
- framework .CreateMachineDeployment (ctx , framework.CreateMachineDeploymentInput {
582
- Creator : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
583
- MachineDeployment : md2 ,
584
- BootstrapConfigTemplate : makeJoinBootstrapConfigTemplate (namespace .Name , mdName2 ),
585
- InfraMachineTemplate : makeAWSMachineTemplate (namespace .Name , mdName2 , e2eCtx .E2EConfig .GetVariable (shared .AwsNodeMachineType ), pointer .StringPtr (az2 ), getSubnetID ("cidr-block" , "10.0.2.0/24" , clusterName )),
586
- })
587
-
588
- ginkgo .By ("Waiting for new worker nodes to become ready" )
589
- k8sClient := e2eCtx .Environment .BootstrapClusterProxy .GetClient ()
590
- framework .WaitForMachineDeploymentNodesToExist (ctx , framework.WaitForMachineDeploymentNodesToExistInput {Lister : k8sClient , Cluster : cluster , MachineDeployment : md1 }, e2eCtx .E2EConfig .GetIntervals ("" , "wait-worker-nodes" )... )
591
- framework .WaitForMachineDeploymentNodesToExist (ctx , framework.WaitForMachineDeploymentNodesToExistInput {Lister : k8sClient , Cluster : cluster , MachineDeployment : md2 }, e2eCtx .E2EConfig .GetIntervals ("" , "wait-worker-nodes" )... )
592
- })
593
- })
594
-
595
549
// TODO @randomvariable: Await more resources
596
550
ginkgo .PDescribe ("Multiple workload clusters" , func () {
597
551
ginkgo .Context ("in different namespaces with machine failures" , func () {
0 commit comments