[Federation] Update hpa e2e utils to enable reuse in fed hpa tests

This commit is contained in:
Irfan Ur Rehman
2017-08-21 20:53:33 +05:30
parent db928095a0
commit eb33d1b1d0
5 changed files with 37 additions and 31 deletions

View File

@@ -87,7 +87,7 @@ func testStackdriverMonitoring(f *framework.Framework, pods, allPodsCPU int, per
framework.ExpectNoError(err)
rc := common.NewDynamicResourceConsumer(rcName, common.KindDeployment, pods, allPodsCPU, memoryUsed, 0, perPodCPU, memoryLimit, f)
rc := common.NewDynamicResourceConsumer(rcName, f.Namespace.Name, common.KindDeployment, pods, allPodsCPU, memoryUsed, 0, perPodCPU, memoryLimit, f.ClientSet, f.InternalClientset)
defer rc.CleanUp()
rc.WaitForReplicas(pods, 15*time.Minute)