mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-23 02:26:52 +00:00
Actually delete LBaaS monitors after disassociating
Partially addresses issue #8352
This commit is contained in:
parent
6491922562
commit
785a775777
@ -691,8 +691,8 @@ func (lb *LoadBalancer) EnsureTCPLoadBalancerDeleted(name, region string) error
|
|||||||
|
|
||||||
if poolExists {
|
if poolExists {
|
||||||
for _, monId := range pool.MonitorIDs {
|
for _, monId := range pool.MonitorIDs {
|
||||||
// TODO(#8352): Delete the monitor, don't just disassociate it.
|
|
||||||
pools.DisassociateMonitor(lb.network, pool.ID, monId)
|
pools.DisassociateMonitor(lb.network, pool.ID, monId)
|
||||||
|
monitors.Delete(monId)
|
||||||
}
|
}
|
||||||
pools.Delete(lb.network, pool.ID)
|
pools.Delete(lb.network, pool.ID)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user