Skip to content

Commit f1b768b

Browse files
sonasingh46k8s-infra-cherrypick-robot
authored andcommitted
use webhook default name for node outbound lb
Signed-off-by: Ashutosh Kumar <[email protected]>
1 parent 31c0c44 commit f1b768b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

azure/scope/cluster.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
685680
func (s *ClusterScope) OutboundLBName(role string) string {
686681
if role == infrav1.Node {

0 commit comments

Comments
 (0)