Merge pull request #113054 from logicalhan/proxy-metric

remove rate limiter metric as it is not in use
This commit is contained in:
Kubernetes Prow Robot
2022-10-17 11:09:18 -07:00
committed by GitHub
28 changed files with 0 additions and 275 deletions

View File

@@ -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(),