@@ -36,14 +36,14 @@ type enqueueRequestsForEndpointSlicesEvent struct {
36
36
}
37
37
38
38
// 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 ] ) {
40
40
epNew := e .Object .(* discv1.EndpointSlice )
41
41
h .logger .V (1 ).Info ("Create event for EndpointSlices" , "name" , epNew .Name )
42
42
h .enqueueImpactedTargetGroupBindings (ctx , queue , epNew )
43
43
}
44
44
45
45
// 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 ] ) {
47
47
epOld := e .ObjectOld .(* discv1.EndpointSlice )
48
48
epNew := e .ObjectNew .(* discv1.EndpointSlice )
49
49
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
54
54
}
55
55
56
56
// 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 ] ) {
58
58
epOld := e .Object .(* discv1.EndpointSlice )
59
59
h .logger .V (1 ).Info ("Deletion event for EndpointSlices" , "name" , epOld .Name )
60
60
h .enqueueImpactedTargetGroupBindings (ctx , queue , epOld )
61
61
}
62
62
63
63
// Generic is called in response to an event of an unknown type or a synthetic event triggered as a cron or
64
64
// 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 ] ) {
66
66
}
67
67
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 ) {
69
69
tgbList := & elbv2api.TargetGroupBindingList {}
70
70
svcName , present := epSlice .Labels [svcNameLabel ]
71
71
if ! present {
0 commit comments