mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Merge pull request #122415 from pohly/dra-scheduler-deallocation-fix
dra scheduler: fix incorrect tracking of claim candidates for reallocation
This commit is contained in:
commit
e2a6ce713c
@ -754,7 +754,7 @@ func (pl *dynamicResources) Filter(ctx context.Context, cs *framework.CycleState
|
||||
// would just get allocated again for a random node,
|
||||
// which is unlikely to help the pod.
|
||||
if claim.Spec.AllocationMode == resourcev1alpha2.AllocationModeWaitForFirstConsumer {
|
||||
state.unavailableClaims.Insert(unavailableClaims...)
|
||||
state.unavailableClaims.Insert(index)
|
||||
}
|
||||
}
|
||||
return statusUnschedulable(logger, "resourceclaim not available on the node", "pod", klog.KObj(pod))
|
||||
|
Loading…
Reference in New Issue
Block a user