@@ -415,7 +415,16 @@ func ScaleSpec(ctx context.Context, inputGetter func() ScaleSpecInput) {
415
415
Concurrency : concurrency ,
416
416
FailFast : input .FailFast ,
417
417
WorkerFunc : func (ctx context.Context , inputChan chan string , resultChan chan workResult , wg * sync.WaitGroup ) {
418
- deleteClusterAndWaitWorker (ctx , inputChan , resultChan , wg , input .BootstrapClusterProxy .GetClient (), namespace .Name , input .DeployClusterInSeparateNamespaces )
418
+ deleteClusterAndWaitWorker (
419
+ ctx ,
420
+ inputChan ,
421
+ resultChan ,
422
+ wg ,
423
+ input .BootstrapClusterProxy .GetClient (),
424
+ namespace .Name ,
425
+ input .DeployClusterInSeparateNamespaces ,
426
+ input .E2EConfig .GetIntervals (specName , "wait-delete-cluster" )... ,
427
+ )
419
428
},
420
429
})
421
430
if err != nil {
@@ -659,7 +668,7 @@ func createClusterWorker(ctx context.Context, clusterProxy framework.ClusterProx
659
668
}
660
669
}
661
670
662
- func deleteClusterAndWaitWorker (ctx context.Context , inputChan <- chan string , resultChan chan <- workResult , wg * sync.WaitGroup , c client.Client , defaultNamespace string , deployClusterInSeparateNamespaces bool ) {
671
+ func deleteClusterAndWaitWorker (ctx context.Context , inputChan <- chan string , resultChan chan <- workResult , wg * sync.WaitGroup , c client.Client , defaultNamespace string , deployClusterInSeparateNamespaces bool , intervals ... interface {} ) {
663
672
defer wg .Done ()
664
673
665
674
for {
@@ -705,7 +714,7 @@ func deleteClusterAndWaitWorker(ctx context.Context, inputChan <-chan string, re
705
714
framework .WaitForClusterDeleted (ctx , framework.WaitForClusterDeletedInput {
706
715
Client : c ,
707
716
Cluster : cluster ,
708
- })
717
+ }, intervals ... )
709
718
710
719
// Note: We only delete the namespace in this case because in the case where all clusters are deployed
711
720
// to the same namespace deleting the Namespace will lead to deleting all clusters.
0 commit comments