@@ -49,15 +49,15 @@ const (
49
49
Success Status = "Success"
50
50
Wait Status = "Wait"
51
51
52
- preFilterStateKey = "PreFilterCoscheduling "
52
+ permitStateKey = "PermitCoscheduling "
53
53
)
54
54
55
- type PreFilterState struct {
55
+ type PermitState struct {
56
56
Activate bool
57
57
}
58
58
59
- func (s * PreFilterState ) Clone () framework.StateData {
60
- return & PreFilterState {Activate : s .Activate }
59
+ func (s * PermitState ) Clone () framework.StateData {
60
+ return & PermitState {Activate : s .Activate }
61
61
}
62
62
63
63
// Manager defines the interfaces for PodGroup management.
@@ -119,9 +119,9 @@ func (pgMgr *PodGroupManager) ActivateSiblings(pod *corev1.Pod, state *framework
119
119
}
120
120
121
121
// Only proceed if it's explicitly requested to activate sibling pods.
122
- if c , err := state .Read (preFilterStateKey ); err != nil {
122
+ if c , err := state .Read (permitStateKey ); err != nil {
123
123
return
124
- } else if s , ok := c .(* PreFilterState ); ! ok || ! s .Activate {
124
+ } else if s , ok := c .(* PermitState ); ! ok || ! s .Activate {
125
125
return
126
126
}
127
127
@@ -236,7 +236,7 @@ func (pgMgr *PodGroupManager) Permit(ctx context.Context, state *framework.Cycle
236
236
// its siblings.
237
237
// It'd be in-efficient if we trigger activating siblings unconditionally.
238
238
// See https://github.com/kubernetes-sigs/scheduler-plugins/issues/682
239
- state .Write (preFilterStateKey , & PreFilterState {Activate : true })
239
+ state .Write (permitStateKey , & PermitState {Activate : true })
240
240
}
241
241
242
242
return Wait
0 commit comments