We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afb4f8d commit b1d8e0bCopy full SHA for b1d8e0b
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