Skip to content

Commit

Permalink
Remove deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Lubron Zhan <lubronzhan@gmail.com>
  • Loading branch information
lubronzhan committed Feb 21, 2025
1 parent d891762 commit c5ef4ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/provider/loadbalancerclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type loadbalancerClassServiceController struct {
serviceListerSynced cache.InformerSynced

recorder record.EventRecorder
workqueue workqueue.RateLimitingInterface
workqueue workqueue.TypedRateLimitingInterface[any]

cmName string
cmNamespace string
Expand All @@ -57,7 +57,7 @@ func newLoadbalancerClassServiceController(
kubeClient: kubeClient,

recorder: recorder,
workqueue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultControllerRateLimiter(), "Services"),
workqueue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultTypedControllerRateLimiter[any](), "Services"),

cmName: cmName,
cmNamespace: cmNamespace,
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/loadbalancerclass_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func newController(kubeClient *fake.Clientset) *loadbalancerClassServiceControll
cmNamespace: KubeVipClientConfigNamespace,

recorder: record.NewFakeRecorder(100),
workqueue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultControllerRateLimiter(), "Nodes"),
workqueue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultTypedControllerRateLimiter[any](), "Nodes"),
}
kubeClient.ClearActions()
return c
Expand Down

0 comments on commit c5ef4ff

Please sign in to comment.