File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
20
20
"time"
21
21
22
22
"k8s.io/apimachinery/pkg/labels"
23
+ "k8s.io/apimachinery/pkg/runtime/schema"
23
24
"k8s.io/client-go/util/workqueue"
24
25
"k8s.io/klog/v2"
25
26
@@ -69,7 +70,11 @@ func (d *DynamicRateLimiter[T]) When(_ T) time.Duration {
69
70
// - Secondary rate when system is unhealthy but large-scale
70
71
// - Zero (halt evictions) when system is unhealthy and small-scale
71
72
func (d * DynamicRateLimiter [T ]) getCurrentRate () float32 {
72
- clusterGVR := clusterv1alpha1 .SchemeGroupVersion .WithResource ("clusters" )
73
+ clusterGVR := schema.GroupVersionResource {
74
+ Group : clusterv1alpha1 .GroupName ,
75
+ Version : "v1alpha1" ,
76
+ Resource : "clusters" ,
77
+ }
73
78
74
79
var lister = d .informerManager .Lister (clusterGVR )
75
80
if lister == nil {
You can’t perform that action at this time.
0 commit comments