mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #82264 from syseleven/openstack_dont_delete_lb_on_errors
openstack: Don't Delete LB in Case of Security Group Reconciliation Errors
This commit is contained in:
commit
8ad7e78d37
@ -999,9 +999,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(ctx context.Context, clusterName string
|
|||||||
if lbaas.opts.ManageSecurityGroups {
|
if lbaas.opts.ManageSecurityGroups {
|
||||||
err := lbaas.ensureSecurityGroup(clusterName, apiService, nodes, loadbalancer)
|
err := lbaas.ensureSecurityGroup(clusterName, apiService, nodes, loadbalancer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// cleanup what was created so far
|
return status, fmt.Errorf("Error reconciling security groups for LB service %v/%v: %v", apiService.Namespace, apiService.Name, err)
|
||||||
_ = lbaas.EnsureLoadBalancerDeleted(ctx, clusterName, apiService)
|
|
||||||
return status, err
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user