mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #78051 from davidz627/fix/skipMetrics
Skips metrics gathering for test if not on gce, gke, or aws
This commit is contained in:
commit
60248990a8
@ -507,6 +507,10 @@ func getVolumeOpsFromMetricsForPlugin(ms metrics.Metrics, pluginName string) opC
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getVolumeOpCounts(c clientset.Interface, pluginName string) opCounts {
|
func getVolumeOpCounts(c clientset.Interface, pluginName string) opCounts {
|
||||||
|
if !framework.ProviderIs("gce", "gke", "aws") {
|
||||||
|
return opCounts{}
|
||||||
|
}
|
||||||
|
|
||||||
nodeLimit := 25
|
nodeLimit := 25
|
||||||
|
|
||||||
metricsGrabber, err := metrics.NewMetricsGrabber(c, nil, true, false, true, false, false)
|
metricsGrabber, err := metrics.NewMetricsGrabber(c, nil, true, false, true, false, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user