Skip to content

Commit 89e2fea

Browse files
committed
DRA scheduler: fix feature gate check for PodSchedulingContext event
The event is only relevant when DRAControlPlaneController (= "classic DRA") is enabled. This change has no effect in practice because the only plugin using this event, the dynamic resource plugin, also checks feature gates when asking for events and correctly only asks for PodSchedulingContext events when DRAControlPlaneController is enabled.
1 parent cb7b4ea commit 89e2fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scheduler/eventhandlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func addAllEventHandlers(
514514
}
515515
handlers = append(handlers, handlerRegistration)
516516
case framework.PodSchedulingContext:
517-
if utilfeature.DefaultFeatureGate.Enabled(features.DynamicResourceAllocation) {
517+
if utilfeature.DefaultFeatureGate.Enabled(features.DRAControlPlaneController) {
518518
if handlerRegistration, err = informerFactory.Resource().V1alpha3().PodSchedulingContexts().Informer().AddEventHandler(
519519
buildEvtResHandler(at, framework.PodSchedulingContext, "PodSchedulingContext"),
520520
); err != nil {

0 commit comments

Comments
 (0)