MCPcopy Create free account
hub / github.com/openelb/openelb / Delete

Method Delete

pkg/controllers/lb/eventhandler.go:102–113  ·  view source on GitHub ↗

Delete implements EventHandler

(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)

Source from the content-addressed store, hash-verified

100
101// Delete implements EventHandler
102func (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
116func (e *EnqueueRequestForNode) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface) {

Callers

nothing calls this directly

Calls 3

getServicesMethod · 0.95
ErrorMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected