Commit ec6a9881 authored by TAKAHASHI Yuto's avatar TAKAHASHI Yuto

Register plugins with the scheduling framework properly

parent a6ba2ebf
...@@ -58,7 +58,7 @@ func NewDefaultPluginSet(ctx *plugins.PluginContext, schedulerCache *cache.Cache ...@@ -58,7 +58,7 @@ func NewDefaultPluginSet(ctx *plugins.PluginContext, schedulerCache *cache.Cache
return &defaultRegistrar return &defaultRegistrar
} }
func (r DefaultPluginSet) registerReservePlugins() { func (r *DefaultPluginSet) registerReservePlugins() {
r.reservePlugins = []plugins.ReservePlugin{ r.reservePlugins = []plugins.ReservePlugin{
// Init functions of all reserve plugins go here. They are called in the // Init functions of all reserve plugins go here. They are called in the
// same order that they are registered. // same order that they are registered.
...@@ -67,7 +67,7 @@ func (r DefaultPluginSet) registerReservePlugins() { ...@@ -67,7 +67,7 @@ func (r DefaultPluginSet) registerReservePlugins() {
} }
} }
func (r DefaultPluginSet) registerPrebindPlugins() { func (r *DefaultPluginSet) registerPrebindPlugins() {
r.prebindPlugins = []plugins.PrebindPlugin{ r.prebindPlugins = []plugins.PrebindPlugin{
// Init functions of all prebind plugins go here. They are called in the // Init functions of all prebind plugins go here. They are called in the
// same order that they are registered. // same order that they are registered.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment