Enable Add-On resource gathering in scalability tests

This commit is contained in:
gmarek
2015-11-25 13:24:40 +01:00
parent 3136acad8b
commit 4a785d0676
5 changed files with 27 additions and 28 deletions

View File

@@ -40,10 +40,7 @@ type Framework struct {
Client *client.Client
NamespaceDeletionTimeout time.Duration
// If set to true framework will start a goroutine monitoring resource usage of system add-ons.
// It will read the data every 30 seconds from all Nodes and print summary during afterEach.
GatherKubeSystemResourceUsageData bool
gatherer containerResourceGatherer
gatherer containerResourceGatherer
}
// NewFramework makes a new framework and sets up a BeforeEach/AfterEach for
@@ -81,7 +78,7 @@ func (f *Framework) beforeEach() {
Logf("Skipping waiting for service account")
}
if f.GatherKubeSystemResourceUsageData {
if testContext.GatherKubeSystemResourceUsageData {
f.gatherer.startGatheringData(c, time.Minute)
}
}
@@ -125,7 +122,7 @@ func (f *Framework) afterEach() {
Logf("Found DeleteNamespace=false, skipping namespace deletion!")
}
if f.GatherKubeSystemResourceUsageData {
if testContext.GatherKubeSystemResourceUsageData {
f.gatherer.stopAndPrintData([]int{50, 90, 99, 100})
}
// Paranoia-- prevent reuse!