Skip to content

Commit

Permalink
Merge pull request kubernetes#6499 from marquiz/devel/fixes-core
Browse files Browse the repository at this point in the history
chore: remove unused arg from StaticAutoScaler
  • Loading branch information
k8s-ci-robot authored Feb 6, 2024
2 parents 8b74a50 + 6f57c57 commit 506c221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 506c221

Please sign in to comment.