Skip to content

Commit

Permalink
Merge pull request #737 from hidekazuna/fix_lbmember_creation
Browse files Browse the repository at this point in the history
Fix LoadBalancerMember creation
  • Loading branch information
k8s-ci-robot committed Feb 18, 2021
2 parents b9d581c + 6c99448 commit 76f23ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/cloud/services/loadbalancer/loadbalancer.go
Expand Up @@ -217,7 +217,6 @@ func (s *Service) ReconcileLoadBalancerMember(clusterName string, machine *clust
s.logger.Info("Reconciling loadbalancer", "name", loadBalancerName)

lbID := openStackCluster.Status.Network.APIServerLoadBalancer.ID
subnetID := openStackCluster.Status.Network.Subnet.ID
portList := []int{int(openStackCluster.Spec.ControlPlaneEndpoint.Port)}
portList = append(portList, openStackCluster.Spec.APIServerLoadBalancerAdditionalPorts...)
for _, port := range portList {
Expand Down Expand Up @@ -268,7 +267,6 @@ func (s *Service) ReconcileLoadBalancerMember(clusterName string, machine *clust
Name: name,
ProtocolPort: port,
Address: ip,
SubnetID: subnetID,
}

if err := waitForLoadBalancerActive(s.logger, s.loadbalancerClient, lbID); err != nil {
Expand Down

0 comments on commit 76f23ba

Please sign in to comment.