File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,6 @@ import (
29
29
"github.com/karmada-io/karmada/pkg/util/fedinformer/genericmanager"
30
30
)
31
31
32
- // EvictionWorker enhances AsyncWorker with dynamic rate limiting and metrics
33
- // for eviction operations. It provides a queue that adjusts its processing rate
34
- // based on cluster health status.
35
- type EvictionWorker interface {
36
- util.AsyncWorker
37
- }
38
-
39
32
// EvictionQueueOptions holds the options that control the behavior of the graceful eviction queue based on the overall health of the clusters.
40
33
type EvictionQueueOptions struct {
41
34
// ResourceEvictionRate is the number of resources to be evicted per second.
@@ -88,7 +81,7 @@ type EvictionWorkerOptions struct {
88
81
}
89
82
90
83
// NewEvictionWorker creates a new EvictionWorker with dynamic rate limiting.
91
- func NewEvictionWorker (opts EvictionWorkerOptions ) EvictionWorker {
84
+ func NewEvictionWorker (opts EvictionWorkerOptions ) util. AsyncWorker {
92
85
rateLimiter := NewGracefulEvictionRateLimiter [interface {}](
93
86
opts .InformerManager ,
94
87
opts .EvictionQueueOptions ,
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ type NoExecuteTaintManager struct {
67
67
EvictionQueueOptions EvictionQueueOptions
68
68
69
69
//bindingEvictionWorker handles ResourceBinding resources
70
- bindingEvictionWorker EvictionWorker
70
+ bindingEvictionWorker util. AsyncWorker
71
71
//clusterBindingEvictionWorker handles the ClusterResourceBinding resource
72
- clusterBindingEvictionWorker EvictionWorker
72
+ clusterBindingEvictionWorker util. AsyncWorker
73
73
}
74
74
75
75
// Reconcile performs a full reconciliation for the object referred to by the Request.
You can’t perform that action at this time.
0 commit comments