diff --git a/api/v1alpha3/azurecluster_default_test.go b/api/v1alpha3/azurecluster_default_test.go index ba3af00857f5..023c8d98c9fe 100644 --- a/api/v1alpha3/azurecluster_default_test.go +++ b/api/v1alpha3/azurecluster_default_test.go @@ -603,7 +603,7 @@ func TestAPIServerLBDefaults(t *testing.T) { SKU: SKUStandard, FrontendIPs: []FrontendIP{ { - Name: "cluster-test-internal-lb-frontEnd", + Name: "cluster-test-internal-lb-frontEnd", PrivateIPAddress: DefaultInternalLBIPAddress, }, }, diff --git a/cloud/interfaces.go b/cloud/interfaces.go index dd3b90228e12..4b473728fbb9 100644 --- a/cloud/interfaces.go +++ b/cloud/interfaces.go @@ -66,8 +66,10 @@ type NetworkDescriber interface { NodeRouteTable() *infrav1.RouteTable ControlPlaneRouteTable() *infrav1.RouteTable APIServerLBName() string + APIServerLBPoolName(string) string IsAPIServerPrivate() bool OutboundLBName(string) string + OutboundPoolName(string) string } // ClusterDescriber is an interface which can get common Azure Cluster information. diff --git a/cloud/mocks/service_mock.go b/cloud/mocks/service_mock.go index 8c3d9e940cd6..e099792cab40 100644 --- a/cloud/mocks/service_mock.go +++ b/cloud/mocks/service_mock.go @@ -452,6 +452,20 @@ func (mr *MockNetworkDescriberMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockNetworkDescriber)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockNetworkDescriber) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockNetworkDescriberMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockNetworkDescriber)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockNetworkDescriber) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -480,6 +494,20 @@ func (mr *MockNetworkDescriberMockRecorder) OutboundLBName(arg0 interface{}) *go return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockNetworkDescriber)(nil).OutboundLBName), arg0) } +// OutboundPoolName mocks base method. +func (m *MockNetworkDescriber) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockNetworkDescriberMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockNetworkDescriber)(nil).OutboundPoolName), arg0) +} + // MockClusterDescriber is a mock of ClusterDescriber interface. type MockClusterDescriber struct { ctrl *gomock.Controller @@ -946,6 +974,20 @@ func (mr *MockClusterScoperMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockClusterScoper)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockClusterScoper) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockClusterScoperMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockClusterScoper)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockClusterScoper) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -973,3 +1015,17 @@ func (mr *MockClusterScoperMockRecorder) OutboundLBName(arg0 interface{}) *gomoc mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockClusterScoper)(nil).OutboundLBName), arg0) } + +// OutboundPoolName mocks base method. +func (m *MockClusterScoper) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockClusterScoperMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockClusterScoper)(nil).OutboundPoolName), arg0) +} diff --git a/cloud/scope/cluster.go b/cloud/scope/cluster.go index b78ae9ffca2e..687ba2804323 100644 --- a/cloud/scope/cluster.go +++ b/cloud/scope/cluster.go @@ -137,7 +137,7 @@ func (s *ClusterScope) LBSpecs() []azure.LBSpec { Type: s.APIServerLB().Type, SKU: infrav1.SKUStandard, Role: infrav1.APIServerRole, - BackendPoolName: azure.GenerateBackendAddressPoolName(s.APIServerLB().Name), + BackendPoolName: s.APIServerLBPoolName(s.APIServerLB().Name), }, { // Public Node outbound LB @@ -152,7 +152,7 @@ func (s *ClusterScope) LBSpecs() []azure.LBSpec { }, Type: infrav1.Public, SKU: infrav1.SKUStandard, - BackendPoolName: azure.GenerateOutboundBackendAddressPoolName(s.NodeOutboundLBName()), + BackendPoolName: s.OutboundPoolName(s.NodeOutboundLBName()), Role: infrav1.NodeOutboundRole, }, } @@ -172,9 +172,9 @@ func (s *ClusterScope) LBSpecs() []azure.LBSpec { }, }, }, - Type: infrav1.Public, - SKU: infrav1.SKUStandard, - BackendPoolName: azure.GenerateOutboundBackendAddressPoolName(azure.GenerateControlPlaneOutboundLBName(s.ClusterName())), + Type: infrav1.Public, + SKU: infrav1.SKUStandard, + BackendPoolName: s.OutboundPoolName(azure.GenerateControlPlaneOutboundLBName(s.ClusterName())), Role: infrav1.ControlPlaneOutboundRole, }) @@ -310,6 +310,11 @@ func (s *ClusterScope) APIServerPrivateIP() string { return s.APIServerLB().FrontendIPs[0].PrivateIPAddress } +// APIServerLBPoolName returns the API Server LB backend pool name. +func (s *ClusterScope) APIServerLBPoolName(loadBalancerName string) string { + return azure.GenerateBackendAddressPoolName(loadBalancerName) +} + // NodeOutboundLBName returns the name of the node outbound LB. func (s *ClusterScope) NodeOutboundLBName() string { return s.ClusterName() @@ -326,6 +331,11 @@ func (s *ClusterScope) OutboundLBName(role string) string { return s.APIServerLBName() } +// OutboundPoolName returns the outbound LB backend pool name. +func (s *ClusterScope) OutboundPoolName(loadBalancerName string) string { + return azure.GenerateOutboundBackendAddressPoolName(loadBalancerName) +} + // ResourceGroup returns the cluster resource group. func (s *ClusterScope) ResourceGroup() string { return s.AzureCluster.Spec.ResourceGroup diff --git a/cloud/scope/machine.go b/cloud/scope/machine.go index 63ee0428ebf4..aa02696d68e9 100644 --- a/cloud/scope/machine.go +++ b/cloud/scope/machine.go @@ -155,15 +155,15 @@ func (m *MachineScope) NICSpecs() []azure.NICSpec { IPv6Enabled: m.IsIPv6Enabled(), EnableIPForwarding: m.AzureMachine.Spec.EnableIPForwarding, PublicLBName: m.OutboundLBName(m.Role()), - PublicLBAddressPoolName: azure.GenerateOutboundBackendAddressPoolName(m.OutboundLBName(m.Role())), + PublicLBAddressPoolName: m.OutboundPoolName(m.OutboundLBName(m.Role())), } if m.Role() == infrav1.ControlPlane { if m.IsAPIServerPrivate() { spec.InternalLBName = m.APIServerLBName() - spec.InternalLBAddressPoolName = azure.GenerateBackendAddressPoolName(m.APIServerLBName()) + spec.InternalLBAddressPoolName = m.APIServerLBPoolName(m.APIServerLBName()) } else { spec.PublicLBNATRuleName = m.Name() - spec.PublicLBAddressPoolName = azure.GenerateBackendAddressPoolName(m.APIServerLBName()) + spec.PublicLBAddressPoolName = m.APIServerLBPoolName(m.APIServerLBName()) } } specs := []azure.NICSpec{spec} diff --git a/cloud/scope/managedcontrolplane.go b/cloud/scope/managedcontrolplane.go index 650eb0e1cd96..74f554183bba 100644 --- a/cloud/scope/managedcontrolplane.go +++ b/cloud/scope/managedcontrolplane.go @@ -215,7 +215,12 @@ func (s *ManagedControlPlaneScope) IsVnetManaged() bool { // APIServerLBName returns the API Server LB name. func (s *ManagedControlPlaneScope) APIServerLBName() string { - return "" + return "" // does not apply for AKS +} + +// APIServerLBPoolName returns the API Server LB backend pool name. +func (s *ManagedControlPlaneScope) APIServerLBPoolName(loadBalancerName string) string { + return "" // does not apply for AKS } // IsAPIServerPrivate returns true if the API Server LB is of type Internal. @@ -226,6 +231,11 @@ func (s *ManagedControlPlaneScope) IsAPIServerPrivate() bool { // OutboundLBName returns the name of the outbound LB. // Note: for managed clusters, the outbound LB lifecycle is not managed. -func (s *ManagedControlPlaneScope) OutboundLBName(string) string { +func (s *ManagedControlPlaneScope) OutboundLBName(_ string) string { return "kubernetes" } + +// OutboundPoolName returns the outbound LB backend pool name. +func (s *ManagedControlPlaneScope) OutboundPoolName(_ string) string { + return "aksOutboundBackendPool" // hard-coded in aks +} diff --git a/cloud/services/bastionhosts/mocks_bastionhosts/bastionhosts_mock.go b/cloud/services/bastionhosts/mocks_bastionhosts/bastionhosts_mock.go index 7021b6223088..a7ef832b5f93 100644 --- a/cloud/services/bastionhosts/mocks_bastionhosts/bastionhosts_mock.go +++ b/cloud/services/bastionhosts/mocks_bastionhosts/bastionhosts_mock.go @@ -412,6 +412,20 @@ func (mr *MockBastionScopeMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockBastionScope)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockBastionScope) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockBastionScopeMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockBastionScope)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockBastionScope) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -440,6 +454,20 @@ func (mr *MockBastionScopeMockRecorder) OutboundLBName(arg0 interface{}) *gomock return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockBastionScope)(nil).OutboundLBName), arg0) } +// OutboundPoolName mocks base method. +func (m *MockBastionScope) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockBastionScopeMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockBastionScope)(nil).OutboundPoolName), arg0) +} + // BastionSpecs mocks base method. func (m *MockBastionScope) BastionSpecs() []azure.BastionSpec { m.ctrl.T.Helper() diff --git a/cloud/services/loadbalancers/mock_loadbalancers/loadbalancers_mock.go b/cloud/services/loadbalancers/mock_loadbalancers/loadbalancers_mock.go index 498197135c6c..e4eb3afb4a4e 100644 --- a/cloud/services/loadbalancers/mock_loadbalancers/loadbalancers_mock.go +++ b/cloud/services/loadbalancers/mock_loadbalancers/loadbalancers_mock.go @@ -412,6 +412,20 @@ func (mr *MockLBScopeMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockLBScope)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockLBScope) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockLBScopeMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockLBScope)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockLBScope) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -440,6 +454,20 @@ func (mr *MockLBScopeMockRecorder) OutboundLBName(arg0 interface{}) *gomock.Call return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockLBScope)(nil).OutboundLBName), arg0) } +// OutboundPoolName mocks base method. +func (m *MockLBScope) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockLBScopeMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockLBScope)(nil).OutboundPoolName), arg0) +} + // LBSpecs mocks base method. func (m *MockLBScope) LBSpecs() []azure.LBSpec { m.ctrl.T.Helper() diff --git a/cloud/services/routetables/mock_routetables/routetables_mock.go b/cloud/services/routetables/mock_routetables/routetables_mock.go index a2bdeb5ea059..40d2d4fa3e63 100644 --- a/cloud/services/routetables/mock_routetables/routetables_mock.go +++ b/cloud/services/routetables/mock_routetables/routetables_mock.go @@ -412,6 +412,20 @@ func (mr *MockRouteTableScopeMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockRouteTableScope)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockRouteTableScope) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockRouteTableScopeMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockRouteTableScope)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockRouteTableScope) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -440,6 +454,20 @@ func (mr *MockRouteTableScopeMockRecorder) OutboundLBName(arg0 interface{}) *gom return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockRouteTableScope)(nil).OutboundLBName), arg0) } +// OutboundPoolName mocks base method. +func (m *MockRouteTableScope) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockRouteTableScopeMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockRouteTableScope)(nil).OutboundPoolName), arg0) +} + // RouteTableSpecs mocks base method. func (m *MockRouteTableScope) RouteTableSpecs() []azure.RouteTableSpec { m.ctrl.T.Helper() diff --git a/cloud/services/securitygroups/mock_securitygroups/securitygroups_mock.go b/cloud/services/securitygroups/mock_securitygroups/securitygroups_mock.go index 949176510411..43a9ed9b263c 100644 --- a/cloud/services/securitygroups/mock_securitygroups/securitygroups_mock.go +++ b/cloud/services/securitygroups/mock_securitygroups/securitygroups_mock.go @@ -412,6 +412,20 @@ func (mr *MockNSGScopeMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockNSGScope)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockNSGScope) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockNSGScopeMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockNSGScope)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockNSGScope) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -440,6 +454,20 @@ func (mr *MockNSGScopeMockRecorder) OutboundLBName(arg0 interface{}) *gomock.Cal return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockNSGScope)(nil).OutboundLBName), arg0) } +// OutboundPoolName mocks base method. +func (m *MockNSGScope) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockNSGScopeMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockNSGScope)(nil).OutboundPoolName), arg0) +} + // NSGSpecs mocks base method. func (m *MockNSGScope) NSGSpecs() []azure.NSGSpec { m.ctrl.T.Helper() diff --git a/cloud/services/subnets/mock_subnets/subnets_mock.go b/cloud/services/subnets/mock_subnets/subnets_mock.go index 5dd1bbfad270..cec7544a5204 100644 --- a/cloud/services/subnets/mock_subnets/subnets_mock.go +++ b/cloud/services/subnets/mock_subnets/subnets_mock.go @@ -412,6 +412,20 @@ func (mr *MockSubnetScopeMockRecorder) APIServerLBName() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBName", reflect.TypeOf((*MockSubnetScope)(nil).APIServerLBName)) } +// APIServerLBPoolName mocks base method. +func (m *MockSubnetScope) APIServerLBPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "APIServerLBPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// APIServerLBPoolName indicates an expected call of APIServerLBPoolName. +func (mr *MockSubnetScopeMockRecorder) APIServerLBPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServerLBPoolName", reflect.TypeOf((*MockSubnetScope)(nil).APIServerLBPoolName), arg0) +} + // IsAPIServerPrivate mocks base method. func (m *MockSubnetScope) IsAPIServerPrivate() bool { m.ctrl.T.Helper() @@ -440,6 +454,20 @@ func (mr *MockSubnetScopeMockRecorder) OutboundLBName(arg0 interface{}) *gomock. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundLBName", reflect.TypeOf((*MockSubnetScope)(nil).OutboundLBName), arg0) } +// OutboundPoolName mocks base method. +func (m *MockSubnetScope) OutboundPoolName(arg0 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "OutboundPoolName", arg0) + ret0, _ := ret[0].(string) + return ret0 +} + +// OutboundPoolName indicates an expected call of OutboundPoolName. +func (mr *MockSubnetScopeMockRecorder) OutboundPoolName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutboundPoolName", reflect.TypeOf((*MockSubnetScope)(nil).OutboundPoolName), arg0) +} + // SubnetSpecs mocks base method. func (m *MockSubnetScope) SubnetSpecs() []azure.SubnetSpec { m.ctrl.T.Helper()