make example plugins conform with the PluginFactory type
This commit is contained in:
@@ -64,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
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user