Skip to content

Commit

Permalink
Configure private or public loadbalancer
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-K-N committed Mar 12, 2024
1 parent 21b92d6 commit 0ce03db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/scope/powervs_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ func (s *PowerVSClusterScope) createLoadBalancer(lb infrav1beta2.VPCLoadBalancer
}

options.SetName(lb.Name)
options.SetIsPublic(true)
options.SetIsPublic(lb.Public)
options.SetResourceGroup(&vpcv1.ResourceGroupIdentity{
ID: &resourceGroupID,
})
Expand Down Expand Up @@ -1361,7 +1361,7 @@ func (s *PowerVSClusterScope) createLoadBalancer(lb infrav1beta2.VPCLoadBalancer
ID: loadBalancer.ID,
State: lbState,
Hostname: loadBalancer.Hostname,
ControllerCreated: pointer.Bool(lb.Public),
ControllerCreated: pointer.Bool(true),
}, nil
}

Expand Down

0 comments on commit 0ce03db

Please sign in to comment.