We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46326a3 + b1d8e0b commit a631fd3Copy full SHA for a631fd3
pkg/router/f5/plugin.go
@@ -295,6 +295,21 @@ func (p *F5Plugin) HandleEndpoints(eventType watch.EventType,
295
return err
296
}
297
298
+ case watch.Deleted:
299
+ poolname := poolName(endpoints.Namespace, endpoints.Name)
300
+ // presumably, the endpoints are a nil subnet now, reset it anyway
301
+ endpoints.Subsets = nil
302
+ err := p.updatePool(poolname, endpoints)
303
+ if err != nil {
304
+ return err
305
+ }
306
+
307
+ glog.V(4).Infof("Deleting pool %s", poolname)
308
309
+ err = p.deletePool(poolname)
310
311
312
313
314
315
glog.V(4).Infof("Done processing Endpoints for Name: %v.", endpoints.Name)
0 commit comments