chore: remove unused arg from StaticAutoScaler

This commit is contained in:
Markus Lehtonen 2024-01-31 12:50:43 +02:00
parent ed6ebbe8ba
commit 6f57c57b72
1 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) caerrors.AutoscalerErr
stateUpdateStart := time.Now()
// Get nodes and pods currently living on cluster
allNodes, readyNodes, typedErr := a.obtainNodeLists(a.CloudProvider)
allNodes, readyNodes, typedErr := a.obtainNodeLists()
if typedErr != nil {
klog.Errorf("Failed to get node list: %v", typedErr)
return typedErr
@ -949,7 +949,7 @@ func (a *StaticAutoscaler) ExitCleanUp() {
a.clusterStateRegistry.Stop()
}
func (a *StaticAutoscaler) obtainNodeLists(cp cloudprovider.CloudProvider) ([]*apiv1.Node, []*apiv1.Node, caerrors.AutoscalerError) {
func (a *StaticAutoscaler) obtainNodeLists() ([]*apiv1.Node, []*apiv1.Node, caerrors.AutoscalerError) {
allNodes, err := a.AllNodeLister().List()
if err != nil {
klog.Errorf("Failed to list all nodes: %v", err)