Skip to content

Commit 5bf6303

Browse files
committed
Make EnablePodSchedulingReadiness public
Signed-off-by: kerthcet <[email protected]>
1 parent d038b65 commit 5bf6303

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Name = names.SchedulingGates
3232

3333
// SchedulingGates checks if a Pod carries .spec.schedulingGates.
3434
type SchedulingGates struct {
35-
enablePodSchedulingReadiness bool
35+
EnablePodSchedulingReadiness bool
3636
}
3737

3838
var _ framework.PreEnqueuePlugin = &SchedulingGates{}
@@ -43,7 +43,7 @@ func (pl *SchedulingGates) Name() string {
4343
}
4444

4545
func (pl *SchedulingGates) PreEnqueue(ctx context.Context, p *v1.Pod) *framework.Status {
46-
if !pl.enablePodSchedulingReadiness || len(p.Spec.SchedulingGates) == 0 {
46+
if !pl.EnablePodSchedulingReadiness || len(p.Spec.SchedulingGates) == 0 {
4747
return nil
4848
}
4949
gates := make([]string, 0, len(p.Spec.SchedulingGates))
@@ -63,5 +63,5 @@ func (pl *SchedulingGates) EventsToRegister() []framework.ClusterEventWithHint {
6363

6464
// New initializes a new plugin and returns it.
6565
func New(_ context.Context, _ runtime.Object, _ framework.Handle, fts feature.Features) (framework.Plugin, error) {
66-
return &SchedulingGates{enablePodSchedulingReadiness: fts.EnablePodSchedulingReadiness}, nil
66+
return &SchedulingGates{EnablePodSchedulingReadiness: fts.EnablePodSchedulingReadiness}, nil
6767
}

0 commit comments

Comments
 (0)