Skip to content

Commit bbbdc38

Browse files
committed
fix build
1 parent 7bbc14f commit bbbdc38

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/scheduler/framework/runtime/framework.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ func (f *frameworkImpl) RunPreBindPreFlights(ctx context.Context, state fwk.Cycl
13561356
return returningStatus
13571357
}
13581358

1359-
func (f *frameworkImpl) runPreBindPreFlight(ctx context.Context, pl framework.PreBindPlugin, state fwk.CycleState, pod *v1.Pod, nodeName string) *fwk.Status {
1359+
func (f *frameworkImpl) runPreBindPreFlight(ctx context.Context, pl fwk.PreBindPlugin, state fwk.CycleState, pod *v1.Pod, nodeName string) *fwk.Status {
13601360
if !state.ShouldRecordPluginMetrics() {
13611361
return pl.PreBindPreFlight(ctx, state, pod, nodeName)
13621362
}

pkg/scheduler/framework/runtime/framework_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ func TestPreBindPreFlightPlugins(t *testing.T) {
26862686

26872687
for _, pl := range tt.plugins {
26882688
tmpPl := pl
2689-
if err := registry.Register(pl.name, func(_ context.Context, _ runtime.Object, _ framework.Handle) (framework.Plugin, error) {
2689+
if err := registry.Register(pl.name, func(_ context.Context, _ runtime.Object, _ fwk.Handle) (fwk.Plugin, error) {
26902690
return tmpPl, nil
26912691
}); err != nil {
26922692
t.Fatalf("Unable to register pre bind plugins: %s", pl.name)

pkg/scheduler/schedule_one_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ func TestSchedulerScheduleOne(t *testing.T) {
10471047
sched.SchedulePod = func(ctx context.Context, fwk framework.Framework, state fwk.CycleState, pod *v1.Pod) (ScheduleResult, error) {
10481048
return item.mockScheduleResult, item.injectSchedulingError
10491049
}
1050-
sched.FailureHandler = func(ctx context.Context, fwk framework.Framework, p *framework.QueuedPodInfo, status *fwk.Status, ni *framework.NominatingInfo, start time.Time) {
1050+
sched.FailureHandler = func(ctx context.Context, fwk framework.Framework, p *framework.QueuedPodInfo, status *fwk.Status, ni *fwk.NominatingInfo, start time.Time) {
10511051
gotPod = p.Pod
10521052
gotError = status.AsError()
10531053

pkg/scheduler/testing/framework/fake_plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func NewFakePreBindPlugin(preBindPreFlightStatus, preBindStatus *fwk.Status) fra
229229

230230
// FakePermitPlugin is a test permit plugin.
231231
type FakePermitPlugin struct {
232-
Handle framework.Handle
232+
Handle fwk.Handle
233233
Status *fwk.Status
234234
Timeout time.Duration
235235
}

0 commit comments

Comments
 (0)