@@ -1046,7 +1046,7 @@ func runSimpleScaleUpTest(t *testing.T, config *ScaleUpTestConfig) *ScaleUpTestR
10461046 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , kube_util .ScheduledPods (pods ), nil )
10471047 assert .NoError (t , err )
10481048 nodeInfos , err := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).
1049- Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, now )
1049+ Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, now )
10501050 assert .NoError (t , err )
10511051 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (options .NodeGroupDefaults ), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
10521052 clusterState .UpdateNodes (nodes , nodeInfos , time .Now ())
@@ -1155,7 +1155,7 @@ func TestScaleUpUnhealthy(t *testing.T) {
11551155 assert .NoError (t , err )
11561156 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , pods , nil )
11571157 assert .NoError (t , err )
1158- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, now )
1158+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, now )
11591159 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (config.NodeGroupAutoscalingOptions {MaxNodeProvisionTime : 15 * time .Minute }), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
11601160 clusterState .UpdateNodes (nodes , nodeInfos , time .Now ())
11611161 p3 := BuildTestPod ("p-new" , 550 , 0 )
@@ -1199,7 +1199,7 @@ func TestBinpackingLimiter(t *testing.T) {
11991199 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , nil , nil )
12001200 assert .NoError (t , err )
12011201 nodeInfos , err := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).
1202- Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, now )
1202+ Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, now )
12031203 assert .NoError (t , err )
12041204
12051205 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (config.NodeGroupAutoscalingOptions {MaxNodeProvisionTime : 15 * time .Minute }), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
@@ -1258,7 +1258,7 @@ func TestScaleUpNoHelp(t *testing.T) {
12581258 assert .NoError (t , err )
12591259 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , pods , nil )
12601260 assert .NoError (t , err )
1261- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, now )
1261+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, now )
12621262 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (config.NodeGroupAutoscalingOptions {MaxNodeProvisionTime : 15 * time .Minute }), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
12631263 clusterState .UpdateNodes (nodes , nodeInfos , time .Now ())
12641264 p3 := BuildTestPod ("p-new" , 500 , 0 )
@@ -1413,7 +1413,7 @@ func TestComputeSimilarNodeGroups(t *testing.T) {
14131413 assert .NoError (t , err )
14141414 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , nil , nil )
14151415 assert .NoError (t , err )
1416- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, now )
1416+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, now )
14171417 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (config.NodeGroupAutoscalingOptions {MaxNodeProvisionTime : 15 * time .Minute }), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
14181418 assert .NoError (t , clusterState .UpdateNodes (nodes , nodeInfos , time .Now ()))
14191419
@@ -1497,7 +1497,7 @@ func TestScaleUpBalanceGroups(t *testing.T) {
14971497 assert .NoError (t , err )
14981498 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , podList , nil )
14991499 assert .NoError (t , err )
1500- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, now )
1500+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, now )
15011501 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (config.NodeGroupAutoscalingOptions {MaxNodeProvisionTime : 15 * time .Minute }), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
15021502 clusterState .UpdateNodes (nodes , nodeInfos , time .Now ())
15031503
@@ -1568,7 +1568,7 @@ func TestScaleUpAutoprovisionedNodeGroup(t *testing.T) {
15681568 processors .NodeGroupManager = & MockAutoprovisioningNodeGroupManager {T : t , ExtraGroups : 0 }
15691569
15701570 nodes := []* apiv1.Node {}
1571- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
1571+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
15721572
15731573 suOrchestrator := New ()
15741574 suOrchestrator .Initialize (& autoscalingCtx , processors , clusterState , newEstimatorBuilder (), taints.TaintConfig {})
@@ -1619,7 +1619,7 @@ func TestScaleUpBalanceAutoprovisionedNodeGroups(t *testing.T) {
16191619 processors .NodeGroupManager = & MockAutoprovisioningNodeGroupManager {T : t , ExtraGroups : 2 }
16201620
16211621 nodes := []* apiv1.Node {}
1622- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
1622+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
16231623
16241624 suOrchestrator := New ()
16251625 suOrchestrator .Initialize (& autoscalingCtx , processors , clusterState , newEstimatorBuilder (), taints.TaintConfig {})
@@ -1673,7 +1673,7 @@ func TestScaleUpToMeetNodeGroupMinSize(t *testing.T) {
16731673 nodes := []* apiv1.Node {n1 , n2 }
16741674 err = autoscalingCtx .ClusterSnapshot .SetClusterState (nodes , nil , nil )
16751675 assert .NoError (t , err )
1676- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
1676+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
16771677 processors := processorstest .NewTestProcessors (& autoscalingCtx )
16781678 clusterState := clusterstate .NewClusterStateRegistry (provider , clusterstate.ClusterStateRegistryConfig {}, autoscalingCtx .LogRecorder , NewBackoff (), nodegroupconfig .NewDefaultNodeGroupConfigProcessor (config.NodeGroupAutoscalingOptions {MaxNodeProvisionTime : 15 * time .Minute }), asyncnodegroups .NewDefaultAsyncNodeGroupStateChecker ())
16791679 clusterState .UpdateNodes (nodes , nodeInfos , time .Now ())
@@ -1768,7 +1768,7 @@ func TestScaleupAsyncNodeGroupsEnabled(t *testing.T) {
17681768 processors .AsyncNodeGroupStateChecker = & asyncnodegroups.MockAsyncNodeGroupStateChecker {IsUpcomingNodeGroup : tc .isUpcomingMockMap }
17691769
17701770 nodes := []* apiv1.Node {}
1771- nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
1771+ nodeInfos , _ := nodeinfosprovider .NewDefaultTemplateNodeInfoProvider (nil , false ).Process (& autoscalingCtx , nodes , []* apiv1. Node {}, [] * appsv1.DaemonSet {}, taints.TaintConfig {}, time .Now ())
17721772
17731773 suOrchestrator := New ()
17741774 suOrchestrator .Initialize (& autoscalingCtx , processors , clusterState , newEstimatorBuilder (), taints.TaintConfig {})
0 commit comments