mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Skips metrics gathering for test if not on gce, gke, or aws
This commit is contained in:
parent
63e6cf3a0a
commit
9854ecbeef
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue