Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-hmi authored Sep 10, 2024
2 parents c9c8c87 + 8dc25d3 commit 2d5a818
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/osccluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,12 @@ func (r *OscClusterReconciler) reconcile(ctx context.Context, clusterScope *scop
conditions.MarkTrue(osccluster, infrastructurev1beta1.RouteTablesReadyCondition)

loadBalancerSvc := r.getLoadBalancerSvc(ctx, *clusterScope)
_, err = reconcileLoadBalancer(ctx, clusterScope, loadBalancerSvc, securityGroupSvc)
reconcileLoadBalancer, err := reconcileLoadBalancer(ctx, clusterScope, loadBalancerSvc, securityGroupSvc)
if err != nil {
clusterScope.Error(err, "failed to reconcile LoadBalancer")
conditions.MarkFalse(osccluster, infrastructurev1beta1.LoadBalancerReadyCondition, infrastructurev1beta1.LoadBalancerFailedReason, clusterv1.ConditionSeverityWarning, err.Error())
return reconcileLoadBalancer, err
}
if clusterScope.OscCluster.Spec.Network.Bastion.Enable {
vmSvc := r.getVmSvc(ctx, *clusterScope)
imageSvc := r.getImageSvc(ctx, *clusterScope)
Expand Down

0 comments on commit 2d5a818

Please sign in to comment.