mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Revert "Bumped Heapster version to v0.20.0-alpha and Influxdb to 0.9.2.1"
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
influxdb "github.com/influxdb/influxdb/client"
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
@@ -29,7 +30,14 @@ var _ = Describe("Initial Resources [Skipped] ", func() {
|
||||
f := NewFramework("initial-resources")
|
||||
|
||||
It("should set initial resources based on historical data", func() {
|
||||
// TODO(piosz): Add cleanup data in InfluxDB that left from previous tests.
|
||||
// Cleanup data in InfluxDB that left from previous tests.
|
||||
influxdbClient, err := getInfluxdbClient(f.Client)
|
||||
expectNoError(err, "failed to create influxdb client")
|
||||
_, err = influxdbClient.Query("drop series autoscaling.cpu.usage.2m", influxdb.Second)
|
||||
expectNoError(err)
|
||||
_, err = influxdbClient.Query("drop series autoscaling.memory.usage.2m", influxdb.Second)
|
||||
expectNoError(err)
|
||||
|
||||
cpu := 100
|
||||
mem := 200
|
||||
for i := 0; i < 10; i++ {
|
||||
|
||||
Reference in New Issue
Block a user