Unverified Commit bcd7219b authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

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

fix scheduler plugin example
parents f4ce6b65 1fccb933
...@@ -27,6 +27,7 @@ import ( ...@@ -27,6 +27,7 @@ import (
type CommunicatingPlugin struct{} type CommunicatingPlugin struct{}
var _ = framework.ReservePlugin(CommunicatingPlugin{}) var _ = framework.ReservePlugin(CommunicatingPlugin{})
var _ = framework.PrebindPlugin(CommunicatingPlugin{})
// Name is the name of the plug used in Registry and configurations. // Name is the name of the plug used in Registry and configurations.
const Name = "multipoint-communicating-plugin" const Name = "multipoint-communicating-plugin"
...@@ -63,6 +64,6 @@ func (mc CommunicatingPlugin) Prebind(pc *framework.PluginContext, pod *v1.Pod, ...@@ -63,6 +64,6 @@ func (mc CommunicatingPlugin) Prebind(pc *framework.PluginContext, pod *v1.Pod,
} }
// New initializes a new plugin and returns it. // 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 return &CommunicatingPlugin{}, nil
} }
...@@ -50,6 +50,6 @@ func (sr StatelessPrebindExample) Prebind(pc *framework.PluginContext, pod *v1.P ...@@ -50,6 +50,6 @@ func (sr StatelessPrebindExample) Prebind(pc *framework.PluginContext, pod *v1.P
} }
// New initializes a new plugin and returns it. // 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 return &StatelessPrebindExample{}, nil
} }
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