mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +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,
|
// would just get allocated again for a random node,
|
||||||
// which is unlikely to help the pod.
|
// which is unlikely to help the pod.
|
||||||
if claim.Spec.AllocationMode == resourcev1alpha2.AllocationModeWaitForFirstConsumer {
|
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))
|
return statusUnschedulable(logger, "resourceclaim not available on the node", "pod", klog.KObj(pod))
|
||||||
|
Loading…
Reference in New Issue
Block a user