diff --git a/pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go b/pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go index f7e9bf9f4ec..9edbbcf1803 100644 --- a/pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go +++ b/pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go @@ -86,6 +86,6 @@ func (mc CommunicatingPlugin) PreBind(ctx context.Context, state *framework.Cycl } // New initializes a new plugin and returns it. -func New(_ *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { +func New(_ context.Context, _ *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { return &CommunicatingPlugin{}, nil } diff --git a/pkg/scheduler/framework/plugins/examples/prebind/prebind.go b/pkg/scheduler/framework/plugins/examples/prebind/prebind.go index 2365fdc21bb..b76892cb5c3 100644 --- a/pkg/scheduler/framework/plugins/examples/prebind/prebind.go +++ b/pkg/scheduler/framework/plugins/examples/prebind/prebind.go @@ -49,6 +49,6 @@ func (sr StatelessPreBindExample) PreBind(ctx context.Context, state *framework. } // New initializes a new plugin and returns it. -func New(_ *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { +func New(_ context.Context, _ *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { return &StatelessPreBindExample{}, nil } diff --git a/pkg/scheduler/framework/plugins/examples/stateful/stateful.go b/pkg/scheduler/framework/plugins/examples/stateful/stateful.go index 2eb22468da8..967c6fcf5fc 100644 --- a/pkg/scheduler/framework/plugins/examples/stateful/stateful.go +++ b/pkg/scheduler/framework/plugins/examples/stateful/stateful.go @@ -82,9 +82,9 @@ func (mp *MultipointExample) PreBind(ctx context.Context, state *framework.Cycle } // New initializes a new plugin and returns it. -func New(config *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { +func New(ctx context.Context, config *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { if config == nil { - klog.ErrorS(nil, "MultipointExample configuration cannot be empty") + klog.FromContext(ctx).Error(nil, "MultipointExample configuration cannot be empty") return nil, fmt.Errorf("MultipointExample configuration cannot be empty") } mp := MultipointExample{}