Fix Kubemark tests by not gathering resource usage data
This commit is contained in:
@@ -112,7 +112,7 @@ var _ = Describe("Density", func() {
|
||||
|
||||
framework := NewFramework("density")
|
||||
framework.NamespaceDeletionTimeout = time.Hour
|
||||
framework.GatherKubeSystemResourceUsageData = true
|
||||
framework.GatherKubeSystemResourceUsageData = testContext.GatherKubeSystemResourceUsageData
|
||||
|
||||
BeforeEach(func() {
|
||||
c = framework.Client
|
||||
|
||||
@@ -83,6 +83,7 @@ func init() {
|
||||
flag.StringVar(&testContext.PrometheusPushGateway, "prom-push-gateway", "", "The URL to prometheus gateway, so that metrics can be pushed during e2es and scraped by prometheus. Typically something like 127.0.0.1:9091.")
|
||||
flag.BoolVar(&testContext.VerifyServiceAccount, "e2e-verify-service-account", true, "If true tests will verify the service account before running.")
|
||||
flag.BoolVar(&testContext.DeleteNamespace, "delete-namespace", true, "If true tests will delete namespace after completion. It is only designed to make debugging easier, DO NOT turn it off by default.")
|
||||
flag.BoolVar(&testContext.GatherKubeSystemResourceUsageData, "gather-resource-usage", true, "If set to true framework will be monitoring resource usage of system add-ons in (some) e2e tests.")
|
||||
}
|
||||
|
||||
func TestE2E(t *testing.T) {
|
||||
|
||||
@@ -109,21 +109,22 @@ type CloudConfig struct {
|
||||
}
|
||||
|
||||
type TestContextType struct {
|
||||
KubeConfig string
|
||||
KubeContext string
|
||||
CertDir string
|
||||
Host string
|
||||
RepoRoot string
|
||||
Provider string
|
||||
CloudConfig CloudConfig
|
||||
KubectlPath string
|
||||
OutputDir string
|
||||
prefix string
|
||||
MinStartupPods int
|
||||
UpgradeTarget string
|
||||
PrometheusPushGateway string
|
||||
VerifyServiceAccount bool
|
||||
DeleteNamespace bool
|
||||
KubeConfig string
|
||||
KubeContext string
|
||||
CertDir string
|
||||
Host string
|
||||
RepoRoot string
|
||||
Provider string
|
||||
CloudConfig CloudConfig
|
||||
KubectlPath string
|
||||
OutputDir string
|
||||
prefix string
|
||||
MinStartupPods int
|
||||
UpgradeTarget string
|
||||
PrometheusPushGateway string
|
||||
VerifyServiceAccount bool
|
||||
DeleteNamespace bool
|
||||
GatherKubeSystemResourceUsageData bool
|
||||
}
|
||||
|
||||
var testContext TestContextType
|
||||
|
||||
Reference in New Issue
Block a user