Skip to content

Commit ef2e7f1

Browse files
authored
Merge pull request #1254 from bfournie/internal-address-reference
Use reference for Internal LB address
2 parents c9c98eb + ce0ffe8 commit ef2e7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/services/compute/loadbalancers/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (s *Service) createInternalLoadBalancer(ctx context.Context, name string, l
234234
if err != nil {
235235
return err
236236
}
237-
s.scope.Network().APIInternalAddress = ptr.To[string](addr.Address)
237+
s.scope.Network().APIInternalAddress = ptr.To[string](addr.SelfLink)
238238
if lbType == infrav1.Internal {
239239
// If only creating an internal Load Balancer, set the control plane endpoint
240240
endpoint := s.scope.ControlPlaneEndpoint()

0 commit comments

Comments
 (0)