@@ -36,14 +36,14 @@ type enqueueRequestsForEndpointSlicesEvent struct {
3636}
3737
3838// Create is called in response to an create event - e.g. EndpointSlice Creation.
39- func (h * enqueueRequestsForEndpointSlicesEvent ) Create (ctx context.Context , e event.CreateEvent , queue workqueue.RateLimitingInterface ) {
39+ func (h * enqueueRequestsForEndpointSlicesEvent ) Create (ctx context.Context , e event.CreateEvent , queue workqueue.TypedRateLimitingInterface [reconcile. Request ] ) {
4040 epNew := e .Object .(* discv1.EndpointSlice )
4141 h .logger .V (1 ).Info ("Create event for EndpointSlices" , "name" , epNew .Name )
4242 h .enqueueImpactedTargetGroupBindings (ctx , queue , epNew )
4343}
4444
4545// Update is called in response to an update event - e.g. EndpointSlice Updated.
46- func (h * enqueueRequestsForEndpointSlicesEvent ) Update (ctx context.Context , e event.UpdateEvent , queue workqueue.RateLimitingInterface ) {
46+ func (h * enqueueRequestsForEndpointSlicesEvent ) Update (ctx context.Context , e event.UpdateEvent , queue workqueue.TypedRateLimitingInterface [reconcile. Request ] ) {
4747 epOld := e .ObjectOld .(* discv1.EndpointSlice )
4848 epNew := e .ObjectNew .(* discv1.EndpointSlice )
4949 h .logger .V (1 ).Info ("Update event for EndpointSlices" , "name" , epNew .Name )
@@ -54,18 +54,18 @@ func (h *enqueueRequestsForEndpointSlicesEvent) Update(ctx context.Context, e ev
5454}
5555
5656// Delete is called in response to a delete event - e.g. EndpointSlice Deleted.
57- func (h * enqueueRequestsForEndpointSlicesEvent ) Delete (ctx context.Context , e event.DeleteEvent , queue workqueue.RateLimitingInterface ) {
57+ func (h * enqueueRequestsForEndpointSlicesEvent ) Delete (ctx context.Context , e event.DeleteEvent , queue workqueue.TypedRateLimitingInterface [reconcile. Request ] ) {
5858 epOld := e .Object .(* discv1.EndpointSlice )
5959 h .logger .V (1 ).Info ("Deletion event for EndpointSlices" , "name" , epOld .Name )
6060 h .enqueueImpactedTargetGroupBindings (ctx , queue , epOld )
6161}
6262
6363// Generic is called in response to an event of an unknown type or a synthetic event triggered as a cron or
6464// external trigger request - e.g. reconcile AutoScaling, or a WebHook.
65- func (h * enqueueRequestsForEndpointSlicesEvent ) Generic (context.Context , event.GenericEvent , workqueue.RateLimitingInterface ) {
65+ func (h * enqueueRequestsForEndpointSlicesEvent ) Generic (context.Context , event.GenericEvent , workqueue.TypedRateLimitingInterface [reconcile. Request ] ) {
6666}
6767
68- func (h * enqueueRequestsForEndpointSlicesEvent ) enqueueImpactedTargetGroupBindings (ctx context.Context , queue workqueue.RateLimitingInterface , epSlice * discv1.EndpointSlice ) {
68+ func (h * enqueueRequestsForEndpointSlicesEvent ) enqueueImpactedTargetGroupBindings (ctx context.Context , queue workqueue.TypedRateLimitingInterface [reconcile. Request ] , epSlice * discv1.EndpointSlice ) {
6969 tgbList := & elbv2api.TargetGroupBindingList {}
7070 svcName , present := epSlice .Labels [svcNameLabel ]
7171 if ! present {
0 commit comments