File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,21 @@ var _ = Describe("Density", func() {
462
462
Logf ("Approx throughput: %v pods/min" ,
463
463
float64 (nodeCount )/ (e2eLag [len (e2eLag )- 1 ].Latency .Minutes ()))
464
464
}
465
+
466
+ By ("Deleting ReplicationController and all additional Pods" )
467
+ // We explicitly delete all pods to have API calls necessary for deletion accounted in metrics.
468
+ rc , err := c .ReplicationControllers (ns ).Get (RCName )
469
+ if err == nil && rc .Spec .Replicas != 0 {
470
+ By ("Cleaning up the replication controller" )
471
+ err := DeleteRC (c , ns , RCName )
472
+ expectNoError (err )
473
+ }
474
+
475
+ By ("Removing additional pods if any" )
476
+ for i := 1 ; i <= nodeCount ; i ++ {
477
+ name := additionalPodsPrefix + "-" + strconv .Itoa (i )
478
+ c .Pods (ns ).Delete (name , nil )
479
+ }
465
480
})
466
481
}
467
482
})
You can’t perform that action at this time.
0 commit comments