mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Enable Add-On resource gathering in scalability tests
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user