chore: remove unused arg from StaticAutoScaler
This commit is contained in:
parent
ed6ebbe8ba
commit
6f57c57b72
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue