Skip to content

Commit

Permalink
Better comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jan 17, 2024
1 parent 0820732 commit 95a66f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (l *LoadBalancerController) acquireIP(ctx context.Context, service *v1.Serv
addressPool, ok := annotations[constants.MetalLBSpecificAddressPool]
if !ok {
if l.defaultExternalNetworkID == "" {
return "", fmt.Errorf("no default network for ip acquisition specified, use explicit metallb pool to specify from where to acquire an ip")
return "", fmt.Errorf(`no default network for ip acquisition specified, acquire an ip for your cluster's project and specify it directly in "spec.loadBalancerIP"`)
}

return l.acquireIPFromSpecificNetwork(ctx, service, l.defaultExternalNetworkID)
Expand Down

0 comments on commit 95a66f0

Please sign in to comment.