@@ -253,7 +253,7 @@ func (s *ClusterScope) LBSpecs() []azure.ResourceSpecGetter {
253253 // Node outbound LB
254254 if s .NodeOutboundLB () != nil {
255255 specs = append (specs , & loadbalancers.LBSpec {
256- Name : s .NodeOutboundLBName () ,
256+ Name : s .NodeOutboundLB (). Name ,
257257 ResourceGroup : s .ResourceGroup (),
258258 SubscriptionID : s .SubscriptionID (),
259259 ClusterName : s .ClusterName (),
@@ -263,7 +263,7 @@ func (s *ClusterScope) LBSpecs() []azure.ResourceSpecGetter {
263263 FrontendIPConfigs : s .NodeOutboundLB ().FrontendIPs ,
264264 Type : s .NodeOutboundLB ().Type ,
265265 SKU : s .NodeOutboundLB ().SKU ,
266- BackendPoolName : s .OutboundPoolName (s .NodeOutboundLBName () ),
266+ BackendPoolName : s .OutboundPoolName (s .NodeOutboundLB (). Name ),
267267 IdleTimeoutInMinutes : s .NodeOutboundLB ().IdleTimeoutInMinutes ,
268268 Role : infrav1 .NodeOutboundRole ,
269269 AdditionalTags : s .AdditionalTags (),
@@ -676,11 +676,6 @@ func (s *ClusterScope) APIServerLBPoolName(loadBalancerName string) string {
676676 return azure .GenerateBackendAddressPoolName (loadBalancerName )
677677}
678678
679- // NodeOutboundLBName returns the name of the node outbound LB.
680- func (s * ClusterScope ) NodeOutboundLBName () string {
681- return s .ClusterName ()
682- }
683-
684679// OutboundLBName returns the name of the outbound LB.
685680func (s * ClusterScope ) OutboundLBName (role string ) string {
686681 if role == infrav1 .Node {
0 commit comments