From ec6a9881a48ec44021dcf0be3a64348f0cb68d9a Mon Sep 17 00:00:00 2001 From: TAKAHASHI Yuto Date: Fri, 28 Dec 2018 19:10:01 +0900 Subject: [PATCH] Register plugins with the scheduling framework properly --- pkg/scheduler/plugins/registrar.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scheduler/plugins/registrar.go b/pkg/scheduler/plugins/registrar.go index 4eab86ecc1..62de362d96 100644 --- a/pkg/scheduler/plugins/registrar.go +++ b/pkg/scheduler/plugins/registrar.go @@ -58,7 +58,7 @@ func NewDefaultPluginSet(ctx *plugins.PluginContext, schedulerCache *cache.Cache return &defaultRegistrar } -func (r DefaultPluginSet) registerReservePlugins() { +func (r *DefaultPluginSet) registerReservePlugins() { r.reservePlugins = []plugins.ReservePlugin{ // Init functions of all reserve plugins go here. They are called in the // same order that they are registered. @@ -67,7 +67,7 @@ func (r DefaultPluginSet) registerReservePlugins() { } } -func (r DefaultPluginSet) registerPrebindPlugins() { +func (r *DefaultPluginSet) registerPrebindPlugins() { r.prebindPlugins = []plugins.PrebindPlugin{ // Init functions of all prebind plugins go here. They are called in the // same order that they are registered.