shutdown fix
This commit is contained in:
parent
e2449b425e
commit
279fba0c57
4 changed files with 39 additions and 11 deletions
|
|
@ -129,12 +129,7 @@ func NewLBController(cfg *config.Config, srv *api.Server, log logr.Logger) (call
|
|||
}
|
||||
},
|
||||
Cleanup: func(ctx context.Context, cc cluster.CallbackContext) {
|
||||
db := db.New(cc)
|
||||
ips, err := db.GetIPs()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
deleteIPs(cc, n, ips)
|
||||
deleteIPs(cc, n, n.GetIPs())
|
||||
},
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue