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
bcd7219b
Unverified
Commit
bcd7219b
authored
May 03, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77390 from onursatici/os/fix-scheduler-plugin-example
fix scheduler plugin example
parents
f4ce6b65
1fccb933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
multipoint.go
...duler/framework/plugins/examples/multipoint/multipoint.go
+2
-1
prebind.go
pkg/scheduler/framework/plugins/examples/prebind/prebind.go
+1
-1
No files found.
pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go
View file @
bcd7219b
...
...
@@ -27,6 +27,7 @@ import (
type
CommunicatingPlugin
struct
{}
var
_
=
framework
.
ReservePlugin
(
CommunicatingPlugin
{})
var
_
=
framework
.
PrebindPlugin
(
CommunicatingPlugin
{})
// Name is the name of the plug used in Registry and configurations.
const
Name
=
"multipoint-communicating-plugin"
...
...
@@ -63,6 +64,6 @@ func (mc CommunicatingPlugin) Prebind(pc *framework.PluginContext, pod *v1.Pod,
}
// New initializes a new plugin and returns it.
func
New
(
_
*
runtime
.
Unknown
,
_
framework
.
Framework
)
(
framework
.
Plugin
,
error
)
{
func
New
(
_
*
runtime
.
Unknown
,
_
framework
.
Framework
Handle
)
(
framework
.
Plugin
,
error
)
{
return
&
CommunicatingPlugin
{},
nil
}
pkg/scheduler/framework/plugins/examples/prebind/prebind.go
View file @
bcd7219b
...
...
@@ -50,6 +50,6 @@ func (sr StatelessPrebindExample) Prebind(pc *framework.PluginContext, pod *v1.P
}
// New initializes a new plugin and returns it.
func
New
(
_
*
runtime
.
Unknown
,
_
framework
.
Framework
)
(
framework
.
Plugin
,
error
)
{
func
New
(
_
*
runtime
.
Unknown
,
_
framework
.
Framework
Handle
)
(
framework
.
Plugin
,
error
)
{
return
&
StatelessPrebindExample
{},
nil
}
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