diff --git a/cluster-autoscaler/core/filter_out_schedulable.go b/cluster-autoscaler/core/filteroutschedulable/filter_out_schedulable.go similarity index 99% rename from cluster-autoscaler/core/filter_out_schedulable.go rename to cluster-autoscaler/core/filteroutschedulable/filter_out_schedulable.go index 24953369f5..2dd1de4a2b 100644 --- a/cluster-autoscaler/core/filter_out_schedulable.go +++ b/cluster-autoscaler/core/filteroutschedulable/filter_out_schedulable.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package core +package filteroutschedulable import ( "sort" diff --git a/cluster-autoscaler/core/filter_out_schedulable_test.go b/cluster-autoscaler/core/filteroutschedulable/filter_out_schedulable_test.go similarity index 99% rename from cluster-autoscaler/core/filter_out_schedulable_test.go rename to cluster-autoscaler/core/filteroutschedulable/filter_out_schedulable_test.go index 0a2806249b..36417992fb 100644 --- a/cluster-autoscaler/core/filter_out_schedulable_test.go +++ b/cluster-autoscaler/core/filteroutschedulable/filter_out_schedulable_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package core +package filteroutschedulable import ( "fmt" diff --git a/cluster-autoscaler/main.go b/cluster-autoscaler/main.go index 2636bda44d..5ac43db2f6 100644 --- a/cluster-autoscaler/main.go +++ b/cluster-autoscaler/main.go @@ -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 {