Merge pull request #77390 from onursatici/os/fix-scheduler-plugin-example

fix scheduler plugin example
This commit is contained in:
Kubernetes Prow Robot 2019-05-03 19:49:50 -07:00 committed by GitHub
commit bcd7219b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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.FrameworkHandle) (framework.Plugin, error) {
return &CommunicatingPlugin{}, nil
}

View File

@ -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.FrameworkHandle) (framework.Plugin, error) {
return &StatelessPrebindExample{}, nil
}