Skip to content

Commit ce0ffe8

Browse files
committed
Use reference for Internal LB address
To be consistent with how all the other fields are set, including APIServerAddress, the resource selfLink should be used, not the actual IP address.
1 parent c9c98eb commit ce0ffe8

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)