Commit 5e9fe7ab authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Fix Kubemark tests by not gathering resource usage data

parent 3e5589c1
...@@ -1510,7 +1510,7 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then ...@@ -1510,7 +1510,7 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
NUM_MINIONS=${KUBEMARK_NUM_MINIONS:-$NUM_MINIONS} NUM_MINIONS=${KUBEMARK_NUM_MINIONS:-$NUM_MINIONS}
MASTER_SIZE=${KUBEMARK_MASTER_SIZE:-$MASTER_SIZE} MASTER_SIZE=${KUBEMARK_MASTER_SIZE:-$MASTER_SIZE}
./test/kubemark/start-kubemark.sh ./test/kubemark/start-kubemark.sh
./test/kubemark/run-e2e-tests.sh --ginkgo.focus="should\sallow\sstarting\s30\spods\sper\snode" --delete-namespace="false" ./test/kubemark/run-e2e-tests.sh --ginkgo.focus="should\sallow\sstarting\s30\spods\sper\snode" --delete-namespace="false" --gather-resource-usage="false"
./test/kubemark/stop-kubemark.sh ./test/kubemark/stop-kubemark.sh
NUM_MINIONS=${NUM_MINIONS_BKP} NUM_MINIONS=${NUM_MINIONS_BKP}
MASTER_SIZE=${MASTER_SIZE_BKP} MASTER_SIZE=${MASTER_SIZE_BKP}
......
...@@ -101,6 +101,7 @@ framework-name ...@@ -101,6 +101,7 @@ framework-name
framework-weburi framework-weburi
func-dest func-dest
fuzz-iters fuzz-iters
gather-resource-usage
gce-project gce-project
gce-zone gce-zone
gke-cluster gke-cluster
......
...@@ -112,7 +112,7 @@ var _ = Describe("Density", func() { ...@@ -112,7 +112,7 @@ var _ = Describe("Density", func() {
framework := NewFramework("density") framework := NewFramework("density")
framework.NamespaceDeletionTimeout = time.Hour framework.NamespaceDeletionTimeout = time.Hour
framework.GatherKubeSystemResourceUsageData = true framework.GatherKubeSystemResourceUsageData = testContext.GatherKubeSystemResourceUsageData
BeforeEach(func() { BeforeEach(func() {
c = framework.Client c = framework.Client
......
...@@ -83,6 +83,7 @@ func init() { ...@@ -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.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.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.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) { func TestE2E(t *testing.T) {
......
...@@ -109,21 +109,22 @@ type CloudConfig struct { ...@@ -109,21 +109,22 @@ type CloudConfig struct {
} }
type TestContextType struct { type TestContextType struct {
KubeConfig string KubeConfig string
KubeContext string KubeContext string
CertDir string CertDir string
Host string Host string
RepoRoot string RepoRoot string
Provider string Provider string
CloudConfig CloudConfig CloudConfig CloudConfig
KubectlPath string KubectlPath string
OutputDir string OutputDir string
prefix string prefix string
MinStartupPods int MinStartupPods int
UpgradeTarget string UpgradeTarget string
PrometheusPushGateway string PrometheusPushGateway string
VerifyServiceAccount bool VerifyServiceAccount bool
DeleteNamespace bool DeleteNamespace bool
GatherKubeSystemResourceUsageData bool
} }
var testContext TestContextType var testContext TestContextType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment