File tree 1 file changed +13
-6
lines changed
pkg/epp/scheduling/plugins 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,6 @@ type PreSchedule interface {
34
34
PreSchedule (ctx * types.SchedulingContext )
35
35
}
36
36
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
-
43
37
// Filter defines the interface for filtering a list of pods based on context.
44
38
type Filter interface {
45
39
Plugin
@@ -51,3 +45,16 @@ type Scorer interface {
51
45
Plugin
52
46
Score (ctx * types.SchedulingContext , pod types.Pod ) (float64 , error )
53
47
}
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
+ }
You can’t perform that action at this time.
0 commit comments