Skip to content

Commit

Permalink
do not delete LB in case on security group reconciliation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
multi-io committed Sep 3, 2019
1 parent 8f386af commit afd44da
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,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 LB SGs for LB service %v/%v: %v", apiService.Namespace, apiService.Name, err)
}
}

Expand Down

0 comments on commit afd44da

Please sign in to comment.