From 0f1dad008d8433fc6b3e42d97567e617a3313252 Mon Sep 17 00:00:00 2001 From: Maciej Pytel Date: Tue, 26 Nov 2019 19:38:58 +0100 Subject: [PATCH] Fix a bug in initializing scheduler By default scheduler now returns plugins instead of predicates. However, plugins are not yet supported by CA, so we need to make scheduler return predicates. --- cluster-autoscaler/simulator/predicates.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster-autoscaler/simulator/predicates.go b/cluster-autoscaler/simulator/predicates.go index 0758c643fe5..c455dfed179 100644 --- a/cluster-autoscaler/simulator/predicates.go +++ b/cluster-autoscaler/simulator/predicates.go @@ -125,6 +125,7 @@ func NewPredicateChecker(kubeClient kube_client.Interface, stop <-chan struct{}) NoOpEventRecorder{}, stop, scheduler.WithAlgorithmSource(algorithmSource), + scheduler.WithFrameworkConfigProducerRegistry(nil), ) if err != nil { return nil, fmt.Errorf("couldn't create scheduler; %v", err)