Skip to content

Commit 09bb88d

Browse files
committed
fix merge errors
1 parent 4902e0f commit 09bb88d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

cluster-autoscaler/core/scaledown/planner/planner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func New(context *context.AutoscalingContext, processors *processors.Autoscaling
8888
minUpdateInterval = 1 * time.Nanosecond
8989
}
9090

91-
unneededNodes := unneeded.NewNodes(processors.NodeGroupConfigProcessor, resourceLimitsFinder)
91+
unneededNodes := unneeded.NewNodes(processors.NodeGroupConfigProcessor, resourceLimitsFinder, nlt)
9292
if context.AutoscalingOptions.NodeDeletionCandidateTTL != 0 {
9393
unneededNodes.LoadFromExistingTaints(context.ListerRegistry, time.Now(), context.AutoscalingOptions.NodeDeletionCandidateTTL)
9494
}

cluster-autoscaler/core/scaledown/planner/planner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ func TestNewPlannerWithExistingDeletionCandidateNodes(t *testing.T) {
841841
assert.NoError(t, err)
842842

843843
deleteOptions := options.NodeDeleteOptions{}
844-
p := New(&context, processorstest.NewTestProcessors(&context), deleteOptions, nil)
844+
p := New(&context, processorstest.NewTestProcessors(&context), deleteOptions, nil, nil)
845845

846846
p.unneededNodes.AsList()
847847
})

cluster-autoscaler/core/scaledown/unneeded/nodes_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ func TestNodeLoadFromExistingTaints(t *testing.T) {
284284
for _, tc := range testCases {
285285
t.Run(tc.name, func(t *testing.T) {
286286
t.Parallel()
287+
currentTime = time.Now()
287288

288-
nodes := NewNodes(nil, nil)
289+
nodes := NewNodes(nil, nil, nil)
289290

290291
allNodeLister := kubernetes.NewTestNodeLister(nil)
291292
allNodeLister.SetNodes(tc.allNodes)

cluster-autoscaler/core/static_autoscaler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ func TestStaticAutoscalerRunOnceWithExistingDeletionCandidateNodes(t *testing.T)
17131713
}
17141714
processors := processorstest.NewTestProcessors(&context)
17151715
clusterState := clusterstate.NewClusterStateRegistry(provider, clusterStateConfig, context.LogRecorder, NewBackoff(), nodegroupconfig.NewDefaultNodeGroupConfigProcessor(options.NodeGroupDefaults), processors.AsyncNodeGroupStateChecker)
1716-
sdPlanner, sdActuator := newScaleDownPlannerAndActuator(&context, processors, clusterState, nil)
1716+
sdPlanner, sdActuator := newScaleDownPlannerAndActuator(&context, processors, clusterState, nil, nil)
17171717
suOrchestrator := orchestrator.New()
17181718
suOrchestrator.Initialize(&context, processors, clusterState, newEstimatorBuilder(), taints.TaintConfig{})
17191719

0 commit comments

Comments
 (0)