Merge pull request #78051 from davidz627/fix/skipMetrics

Skips metrics gathering for test if not on gce, gke, or aws
k3s-v1.15.3
Kubernetes Prow Robot 2019-05-29 17:24:33 -07:00 committed by GitHub
commit 60248990a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -507,6 +507,10 @@ func getVolumeOpsFromMetricsForPlugin(ms metrics.Metrics, pluginName string) opC
}
func getVolumeOpCounts(c clientset.Interface, pluginName string) opCounts {
if !framework.ProviderIs("gce", "gke", "aws") {
return opCounts{}
}
nodeLimit := 25
metricsGrabber, err := metrics.NewMetricsGrabber(c, nil, true, false, true, false, false)