Skip to content

Commit bdc404c

Browse files
committed
added the PostResponse interface
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 68ecdc6 commit bdc404c

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pkg/epp/scheduling/plugins/plugins.go

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ type PreSchedule interface {
3434
PreSchedule(ctx *types.SchedulingContext)
3535
}
3636

37-
// PostSchedule is called by the scheduler after it selects a targetPod for the request.
38-
type PostSchedule interface {
39-
Plugin
40-
PostSchedule(ctx *types.SchedulingContext, res *types.Result)
41-
}
42-
4337
// Filter defines the interface for filtering a list of pods based on context.
4438
type Filter interface {
4539
Plugin
@@ -51,3 +45,16 @@ type Scorer interface {
5145
Plugin
5246
Score(ctx *types.SchedulingContext, pod types.Pod) (float64, error)
5347
}
48+
49+
// PostSchedule is called by the scheduler after it selects a targetPod for the request.
50+
type PostSchedule interface {
51+
Plugin
52+
PostSchedule(ctx *types.SchedulingContext, res *types.Result)
53+
}
54+
55+
// PostResponse is called by the scheduler after a successful response was sent.
56+
// The given pod argument is the pod that served the request.
57+
type PostResponse interface {
58+
Plugin
59+
PostResponse(ctx *types.SchedulingContext, pod types.Pod)
60+
}

0 commit comments

Comments
 (0)