From 7aa6356625916cab21fcb91cc1518b7f6a97b971 Mon Sep 17 00:00:00 2001 From: Piotr Szczesniak Date: Tue, 17 Mar 2015 14:57:49 +0100 Subject: [PATCH] Fill NodeInfo in CreateFromKey method in scheduler NodeInfo was nil and it caused segfault Fixes #5503 --- plugin/pkg/scheduler/factory/factory.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/pkg/scheduler/factory/factory.go b/plugin/pkg/scheduler/factory/factory.go index 8a5feba76cef2..e58a562e6cb30 100644 --- a/plugin/pkg/scheduler/factory/factory.go +++ b/plugin/pkg/scheduler/factory/factory.go @@ -110,6 +110,7 @@ func (f *ConfigFactory) CreateFromKeys(predicateKeys, priorityKeys util.StringSe PodLister: f.PodLister, ServiceLister: f.ServiceLister, NodeLister: f.NodeLister, + NodeInfo: f.NodeLister, } predicateFuncs, err := getFitPredicateFunctions(predicateKeys, pluginArgs) if err != nil {