Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ec6a9881
Commit
ec6a9881
authored
Dec 28, 2018
by
TAKAHASHI Yuto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register plugins with the scheduling framework properly
parent
a6ba2ebf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
registrar.go
pkg/scheduler/plugins/registrar.go
+2
-2
No files found.
pkg/scheduler/plugins/registrar.go
View file @
ec6a9881
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment