mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #19469 from gmarek/master
Run test for grabbing metrics from Kubelet only on GCE
This commit is contained in:
commit
1020b436c7
@ -92,6 +92,8 @@ var _ = Describe("MetricsGrabber", 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")
|
||||
nodes := ListSchedulableNodesOrDie(c)
|
||||
Expect(nodes.Items).NotTo(BeEmpty())
|
||||
@ -101,6 +103,7 @@ var _ = Describe("MetricsGrabber", func() {
|
||||
Expect(unknownMetrics).To(BeEmpty())
|
||||
|
||||
checkMetrics(metrics.Metrics(response), metrics.KnownKubeletMetrics)
|
||||
}
|
||||
})
|
||||
|
||||
It("should grab all metrics from a Scheduler.", func() {
|
||||
|
Loading…
Reference in New Issue
Block a user