mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Merge pull request #113054 from logicalhan/proxy-metric
remove rate limiter metric as it is not in use
This commit is contained in:
@@ -46,7 +46,6 @@ import (
|
||||
"k8s.io/client-go/tools/cache"
|
||||
"k8s.io/client-go/tools/record"
|
||||
"k8s.io/client-go/util/workqueue"
|
||||
"k8s.io/component-base/metrics/prometheus/ratelimiter"
|
||||
nodeutil "k8s.io/component-helpers/node/util"
|
||||
"k8s.io/klog/v2"
|
||||
v1helper "k8s.io/kubernetes/pkg/apis/core/v1/helper"
|
||||
@@ -133,10 +132,6 @@ func NewMultiCIDRRangeAllocator(
|
||||
Interface: client.CoreV1().Events(""),
|
||||
})
|
||||
|
||||
if client.CoreV1().RESTClient().GetRateLimiter() != nil {
|
||||
ratelimiter.RegisterMetricAndTrackRateLimiterUsage("multi_cidr_range_allocator", client.CoreV1().RESTClient().GetRateLimiter())
|
||||
}
|
||||
|
||||
ra := &multiCIDRRangeAllocator{
|
||||
client: client,
|
||||
nodeLister: nodeInformer.Lister(),
|
||||
|
||||
Reference in New Issue
Block a user