Skip to content

Commit 506c221

Browse files
authored
Merge pull request #6499 from marquiz/devel/fixes-core
chore: remove unused arg from StaticAutoScaler
2 parents 8b74a50 + 6f57c57 commit 506c221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cluster-autoscaler/core/static_autoscaler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) caerrors.AutoscalerErr
293293
stateUpdateStart := time.Now()
294294

295295
// Get nodes and pods currently living on cluster
296-
allNodes, readyNodes, typedErr := a.obtainNodeLists(a.CloudProvider)
296+
allNodes, readyNodes, typedErr := a.obtainNodeLists()
297297
if typedErr != nil {
298298
klog.Errorf("Failed to get node list: %v", typedErr)
299299
return typedErr
@@ -949,7 +949,7 @@ func (a *StaticAutoscaler) ExitCleanUp() {
949949
a.clusterStateRegistry.Stop()
950950
}
951951

952-
func (a *StaticAutoscaler) obtainNodeLists(cp cloudprovider.CloudProvider) ([]*apiv1.Node, []*apiv1.Node, caerrors.AutoscalerError) {
952+
func (a *StaticAutoscaler) obtainNodeLists() ([]*apiv1.Node, []*apiv1.Node, caerrors.AutoscalerError) {
953953
allNodes, err := a.AllNodeLister().List()
954954
if err != nil {
955955
klog.Errorf("Failed to list all nodes: %v", err)

0 commit comments

Comments
 (0)