mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
Merge pull request #46181 from FengyunPan/ignore-LBnotfound
Automatic merge from submit-queue Ignore ErrNotFound when delete LB resources IsNotFound error is fine since that means the object is deleted already, so let's check it before return error.
This commit is contained in:
commit
72cb080c87
1 changed files with 1 additions and 1 deletions
|
|
@ -1102,7 +1102,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1.
|
|||
var monitorIDs []string
|
||||
for _, listener := range listenerList {
|
||||
pool, err := getPoolByListenerID(lbaas.network, loadbalancer.ID, listener.ID)
|
||||
if err != nil {
|
||||
if err != nil && err != ErrNotFound {
|
||||
return fmt.Errorf("Error getting pool for listener %s: %v", listener.ID, err)
|
||||
}
|
||||
poolIDs = append(poolIDs, pool.ID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue