File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ go_test(
191
191
"//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library" ,
192
192
"//staging/src/k8s.io/client-go/kubernetes:go_default_library" ,
193
193
"//staging/src/k8s.io/client-go/tools/watch:go_default_library" ,
194
+ "//staging/src/k8s.io/component-base/metrics/testutil:go_default_library" ,
194
195
"//staging/src/k8s.io/cri-api/pkg/apis:go_default_library" ,
195
196
"//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library" ,
196
197
"//test/e2e/common:go_default_library" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
v1 "k8s.io/api/core/v1"
26
26
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
27
27
"k8s.io/apimachinery/pkg/util/uuid"
28
+ "k8s.io/component-base/metrics/testutil"
28
29
kubeletmetrics "k8s.io/kubernetes/pkg/kubelet/metrics"
29
30
"k8s.io/kubernetes/test/e2e/framework"
30
31
e2egpu "k8s.io/kubernetes/test/e2e/framework/gpu"
@@ -33,7 +34,6 @@ import (
33
34
34
35
"github.com/onsi/ginkgo"
35
36
"github.com/onsi/gomega"
36
- "github.com/prometheus/common/model"
37
37
)
38
38
39
39
// numberOfNVIDIAGPUs returns the number of GPUs advertised by a node
@@ -189,7 +189,7 @@ func logDevicePluginMetrics() {
189
189
latency := sample .Value
190
190
resource := string (sample .Metric ["resource_name" ])
191
191
var quantile float64
192
- if val , ok := sample .Metric [model .QuantileLabel ]; ok {
192
+ if val , ok := sample .Metric [testutil .QuantileLabel ]; ok {
193
193
var err error
194
194
if quantile , err = strconv .ParseFloat (string (val ), 64 ); err != nil {
195
195
continue
You can’t perform that action at this time.
0 commit comments