Commit 1020b436 authored by Marek Grabowski's avatar Marek Grabowski

Merge pull request #19469 from gmarek/master

Run test for grabbing metrics from Kubelet only on GCE
parents f580569c 5f2222a8
...@@ -92,6 +92,8 @@ var _ = Describe("MetricsGrabber", func() { ...@@ -92,6 +92,8 @@ var _ = Describe("MetricsGrabber", func() {
}) })
It("should grab all metrics from a Kubelet.", func() { It("should grab all metrics from a Kubelet.", func() {
// We run this test only on GCE, as for some reason it flakes in GKE #19468
if providerIs("gce") {
By("Connecting proxying to Node through the API server") By("Connecting proxying to Node through the API server")
nodes := ListSchedulableNodesOrDie(c) nodes := ListSchedulableNodesOrDie(c)
Expect(nodes.Items).NotTo(BeEmpty()) Expect(nodes.Items).NotTo(BeEmpty())
...@@ -101,6 +103,7 @@ var _ = Describe("MetricsGrabber", func() { ...@@ -101,6 +103,7 @@ var _ = Describe("MetricsGrabber", func() {
Expect(unknownMetrics).To(BeEmpty()) Expect(unknownMetrics).To(BeEmpty())
checkMetrics(metrics.Metrics(response), metrics.KnownKubeletMetrics) checkMetrics(metrics.Metrics(response), metrics.KnownKubeletMetrics)
}
}) })
It("should grab all metrics from a Scheduler.", func() { It("should grab all metrics from a Scheduler.", func() {
......
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