@@ -228,7 +228,7 @@ func EnsureNodeBalancerConfigs(
228228 return nbConfigs , nil
229229}
230230
231- func processAndCreateNodeBalancerNodes (ctx context.Context , ipAddress string , clusterScope * scope.ClusterScope , nodeBalancerNodes []linodego.NodeBalancerNode , subnetID int , logger logr. Logger ) error {
231+ func processAndCreateNodeBalancerNodes (ctx context.Context , ipAddress string , clusterScope * scope.ClusterScope , nodeBalancerNodes []linodego.NodeBalancerNode , subnetID int ) error {
232232
233233 apiserverLBPort := DefaultApiserverLBPort
234234 if clusterScope .LinodeCluster .Spec .Network .ApiserverLoadBalancerPort != 0 {
@@ -301,7 +301,7 @@ func AddNodesToNB(ctx context.Context, logger logr.Logger, clusterScope *scope.C
301301 for _ , IPs := range linodeMachine .Status .Addresses {
302302 // Look for internal IPs that are NOT 192.168.* (likely VPC IPs)
303303 if IPs .Type == v1beta1 .MachineInternalIP && ! strings .Contains (IPs .Address , "192.168" ) {
304- if err := processAndCreateNodeBalancerNodes (ctx , IPs .Address , clusterScope , nodeBalancerNodes , subnetID , logger ); err != nil {
304+ if err := processAndCreateNodeBalancerNodes (ctx , IPs .Address , clusterScope , nodeBalancerNodes , subnetID ); err != nil {
305305 return err
306306 }
307307 return nil // Return early if we found and used a VPC IP
@@ -317,7 +317,7 @@ func AddNodesToNB(ctx context.Context, logger logr.Logger, clusterScope *scope.C
317317 }
318318 internalIPFound = true
319319
320- err := processAndCreateNodeBalancerNodes (ctx , IPs .Address , clusterScope , nodeBalancerNodes , subnetID , logger )
320+ err := processAndCreateNodeBalancerNodes (ctx , IPs .Address , clusterScope , nodeBalancerNodes , subnetID )
321321 if err != nil {
322322 return err
323323 }
0 commit comments