Skip to content

Commit

Permalink
[local] Hook in template only nodeinfos provider
Browse files Browse the repository at this point in the history
  • Loading branch information
bpineau committed Sep 20, 2021
1 parent 38063a9 commit 618c5a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster-autoscaler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (

"github.com/spf13/pflag"

"k8s.io/autoscaler/cluster-autoscaler/processors/datadog/nodeinfosprovider"
"k8s.io/autoscaler/cluster-autoscaler/processors/datadog/pods"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -321,6 +322,7 @@ func buildAutoscaler() (core.Autoscaler, error) {

opts.Processors = ca_processors.DefaultProcessors()
opts.Processors.PodListProcessor = pods.NewFilteringPodListProcessor()
opts.Processors.TemplateNodeInfoProvider = nodeinfosprovider.NewTemplateOnlyNodeInfoProvider()

nodeInfoComparatorBuilder := nodegroupset.CreateGenericNodeInfoComparator
if autoscalingOptions.CloudProviderName == cloudprovider.AzureProviderName {
Expand Down

0 comments on commit 618c5a3

Please sign in to comment.