mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +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 {
|
||||
err := lbaas.ensureSecurityGroup(clusterName, apiService, nodes, loadbalancer)
|
||||
if err != nil {
|
||||
// cleanup what was created so far
|
||||
_ = lbaas.EnsureLoadBalancerDeleted(ctx, clusterName, apiService)
|
||||
return status, err
|
||||
return status, fmt.Errorf("Error reconciling security groups for LB service %v/%v: %v", apiService.Namespace, apiService.Name, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user