Move filter_out_schedulable to a separate package
This commit is contained in:
		
							parent
							
								
									96c7eba3b9
								
							
						
					
					
						commit
						e07fd1e130
					
				|  | @ -14,7 +14,7 @@ See the License for the specific language governing permissions and | |||
| limitations under the License. | ||||
| */ | ||||
| 
 | ||||
| package core | ||||
| package filteroutschedulable | ||||
| 
 | ||||
| import ( | ||||
| 	"sort" | ||||
|  | @ -14,7 +14,7 @@ See the License for the specific language governing permissions and | |||
| limitations under the License. | ||||
| */ | ||||
| 
 | ||||
| package core | ||||
| package filteroutschedulable | ||||
| 
 | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | @ -41,6 +41,7 @@ import ( | |||
| 	cloudBuilder "k8s.io/autoscaler/cluster-autoscaler/cloudprovider/builder" | ||||
| 	"k8s.io/autoscaler/cluster-autoscaler/config" | ||||
| 	"k8s.io/autoscaler/cluster-autoscaler/core" | ||||
| 	"k8s.io/autoscaler/cluster-autoscaler/core/filteroutschedulable" | ||||
| 	"k8s.io/autoscaler/cluster-autoscaler/estimator" | ||||
| 	"k8s.io/autoscaler/cluster-autoscaler/expander" | ||||
| 	"k8s.io/autoscaler/cluster-autoscaler/metrics" | ||||
|  | @ -330,7 +331,7 @@ func buildAutoscaler(debuggingSnapshotter debuggingsnapshot.DebuggingSnapshotter | |||
| 
 | ||||
| 	opts.Processors = ca_processors.DefaultProcessors() | ||||
| 	opts.Processors.TemplateNodeInfoProvider = nodeinfosprovider.NewDefaultTemplateNodeInfoProvider(nodeInfoCacheExpireTime) | ||||
| 	opts.Processors.PodListProcessor = core.NewFilterOutSchedulablePodListProcessor() | ||||
| 	opts.Processors.PodListProcessor = filteroutschedulable.NewFilterOutSchedulablePodListProcessor() | ||||
| 
 | ||||
| 	nodeInfoComparatorBuilder := nodegroupset.CreateGenericNodeInfoComparator | ||||
| 	if autoscalingOptions.CloudProviderName == cloudprovider.AzureProviderName { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue