From 1ae56bbe2bcd1016a9675c31f830a7a7f2ee292a Mon Sep 17 00:00:00 2001 From: Shyam Jeedigunta Date: Thu, 16 Nov 2017 12:02:56 +0100 Subject: [PATCH] Set resource-gathering and probe-duration period for kubemark --- test/e2e/framework/resource_usage_gatherer.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/e2e/framework/resource_usage_gatherer.go b/test/e2e/framework/resource_usage_gatherer.go index 6284bd17f67..9ffad1bb424 100644 --- a/test/e2e/framework/resource_usage_gatherer.go +++ b/test/e2e/framework/resource_usage_gatherer.go @@ -215,10 +215,12 @@ func NewResourceUsageGatherer(c clientset.Interface, options ResourceGathererOpt if options.InKubemark { g.workerWg.Add(1) g.workers = append(g.workers, resourceGatherWorker{ - inKubemark: true, - stopCh: g.stopCh, - wg: &g.workerWg, - finished: false, + inKubemark: true, + stopCh: g.stopCh, + wg: &g.workerWg, + finished: false, + resourceDataGatheringPeriod: options.ResourceDataGatheringPeriod, + probeDuration: options.ProbeDuration, }) } else { // Tracks kube-system pods if no valid PodList is passed in.