mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 21:36:24 +00:00
Fix : do not try to delete floatingIP if it does not exists
This commit is contained in:
parent
65c23ea0e7
commit
be5f9094d0
@ -776,11 +776,13 @@ func (lb *LoadBalancer) EnsureTCPLoadBalancerDeleted(name, region string) error
|
|||||||
if err != nil && !isNotFound(err) {
|
if err != nil && !isNotFound(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if floatingIP != nil {
|
||||||
error := floatingips.Delete(lb.network, floatingIP.ID).ExtractErr()
|
error := floatingips.Delete(lb.network, floatingIP.ID).ExtractErr()
|
||||||
if error != nil && !isNotFound(error) {
|
if error != nil && !isNotFound(error) {
|
||||||
return error
|
return error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// We have to delete the VIP before the pool can be deleted,
|
// We have to delete the VIP before the pool can be deleted,
|
||||||
// so no point continuing if this fails.
|
// so no point continuing if this fails.
|
||||||
|
Loading…
Reference in New Issue
Block a user