Delete implements EventHandler
(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
| 100 | |
| 101 | // Delete implements EventHandler |
| 102 | func (e *EnqueueRequestForNode) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface) { |
| 103 | if evt.Object == nil { |
| 104 | klog.Error("DeleteEvent received with no metadata", "event", evt) |
| 105 | return |
| 106 | } |
| 107 | for _, svc := range e.getServices() { |
| 108 | q.Add(reconcile.Request{NamespacedName: types.NamespacedName{ |
| 109 | Name: svc.GetName(), |
| 110 | Namespace: svc.GetNamespace(), |
| 111 | }}) |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | // Generic implements EventHandler |
| 116 | func (e *EnqueueRequestForNode) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface) { |
nothing calls this directly
no test coverage detected