mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
don't try to add pool id if pool doesn't exist
This commit is contained in:
parent
683f09c65e
commit
21ce3de326
@ -1144,12 +1144,14 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1.
|
|||||||
if err != nil && err != ErrNotFound {
|
if err != nil && err != ErrNotFound {
|
||||||
return fmt.Errorf("Error getting pool for listener %s: %v", listener.ID, err)
|
return fmt.Errorf("Error getting pool for listener %s: %v", listener.ID, err)
|
||||||
}
|
}
|
||||||
|
if pool != nil {
|
||||||
poolIDs = append(poolIDs, pool.ID)
|
poolIDs = append(poolIDs, pool.ID)
|
||||||
// If create-monitor of cloud-config is false, pool has not monitor.
|
// If create-monitor of cloud-config is false, pool has not monitor.
|
||||||
if pool.MonitorID != "" {
|
if pool.MonitorID != "" {
|
||||||
monitorIDs = append(monitorIDs, pool.MonitorID)
|
monitorIDs = append(monitorIDs, pool.MonitorID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// get all members associated with each poolIDs
|
// get all members associated with each poolIDs
|
||||||
var memberIDs []string
|
var memberIDs []string
|
||||||
|
Loading…
Reference in New Issue
Block a user