From 8371e4cf931efd2dfa981a7f5edadec9cd32c60b Mon Sep 17 00:00:00 2001 From: kerthcet Date: Tue, 23 Jan 2024 19:38:57 +0800 Subject: [PATCH] quick break when met Signed-off-by: kerthcet --- .../framework/plugins/dynamicresources/dynamicresources.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go b/pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go index e4025ab290c..2e33c29542d 100644 --- a/pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go +++ b/pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go @@ -835,6 +835,7 @@ func (pl *dynamicResources) PreScore(ctx context.Context, cs *framework.CycleSta for _, claim := range state.claims { if claim.Status.Allocation == nil { pending = true + break } } if !pending {