Fill NodeInfo in CreateFromKey method in scheduler

NodeInfo was nil and it caused segfault

Fixes #5503
This commit is contained in:
Piotr Szczesniak
2015-03-17 14:57:49 +01:00
parent 5c99bc9e96
commit 7aa6356625

View File

@@ -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 {