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:
Kubernetes Prow Robot
2023-12-25 10:45:00 +01:00
committed by GitHub

View File

@@ -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))