@@ -46,6 +46,7 @@ import (
46
46
"sigs.k8s.io/controller-runtime/pkg/controller"
47
47
"sigs.k8s.io/controller-runtime/pkg/healthz"
48
48
ctrlmgr "sigs.k8s.io/controller-runtime/pkg/manager"
49
+ "sigs.k8s.io/controller-runtime/pkg/reconcile"
49
50
"sigs.k8s.io/controller-runtime/pkg/webhook"
50
51
)
51
52
@@ -206,7 +207,7 @@ func main() {
206
207
Recorder : mgr .GetEventRecorderFor ("azurestackhcimachine-reconciler" ),
207
208
}).SetupWithManager (mgr , controller.Options {
208
209
MaxConcurrentReconciles : azureStackHCIMachineConcurrency ,
209
- RateLimiter : workqueue .DefaultControllerRateLimiter (),
210
+ RateLimiter : workqueue .DefaultTypedControllerRateLimiter [reconcile. Request ] (),
210
211
}); err != nil {
211
212
setupLog .Error (err , "unable to create controller" , "controller" , "AzureStackHCIMachine" )
212
213
os .Exit (1 )
@@ -217,7 +218,7 @@ func main() {
217
218
Recorder : mgr .GetEventRecorderFor ("azurestackhcicluster-reconciler" ),
218
219
}).SetupWithManager (mgr , controller.Options {
219
220
MaxConcurrentReconciles : azureStackHCIClusterConcurrency ,
220
- RateLimiter : workqueue .DefaultControllerRateLimiter (),
221
+ RateLimiter : workqueue .DefaultTypedControllerRateLimiter [reconcile. Request ] (),
221
222
}); err != nil {
222
223
setupLog .Error (err , "unable to create controller" , "controller" , "AzureStackHCICluster" )
223
224
os .Exit (1 )
@@ -228,7 +229,7 @@ func main() {
228
229
Recorder : mgr .GetEventRecorderFor ("azurestackhciloadbalancer-reconciler" ),
229
230
}).SetupWithManager (mgr , controller.Options {
230
231
MaxConcurrentReconciles : azureStackHCIloadBalancerConcurrency ,
231
- RateLimiter : workqueue .DefaultControllerRateLimiter (),
232
+ RateLimiter : workqueue .DefaultTypedControllerRateLimiter [reconcile. Request ] (),
232
233
}); err != nil {
233
234
setupLog .Error (err , "unable to create controller" , "controller" , "AzureStackHCILoadBalancer" )
234
235
os .Exit (1 )
@@ -240,7 +241,7 @@ func main() {
240
241
Recorder : mgr .GetEventRecorderFor ("azurestackhcivirtualmachine-reconciler" ),
241
242
}).SetupWithManager (mgr , controller.Options {
242
243
MaxConcurrentReconciles : azureStackHCIVirtualMachineConcurrency ,
243
- RateLimiter : workqueue .DefaultControllerRateLimiter (),
244
+ RateLimiter : workqueue .DefaultTypedControllerRateLimiter [reconcile. Request ] (),
244
245
}); err != nil {
245
246
setupLog .Error (err , "unable to create controller" , "controller" , "AzureStackHCIVirtualMachine" )
246
247
os .Exit (1 )
0 commit comments