mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
kubelet(dra): fix multiple claims handling
This commit is contained in:
committed by
Piotr Rogowski
parent
5a6a1fe908
commit
1d79222fd5
@@ -359,10 +359,10 @@ func (m *Manager) prepareResources(ctx context.Context, pod *v1.Pod) error {
|
||||
return fmt.Errorf("checkpoint ResourceClaim cache: %w", err)
|
||||
}
|
||||
|
||||
// If this claim is already prepared, there is no need to prepare it again.
|
||||
// If this claim is already prepared, continue preparing for any remaining claims.
|
||||
if claimInfo.isPrepared() {
|
||||
logger.V(5).Info("Resources already prepared", "pod", klog.KObj(pod), "podClaim", podClaim.Name, "claim", klog.KObj(resourceClaim))
|
||||
return nil
|
||||
continue
|
||||
}
|
||||
|
||||
// This saved claim will be used to update ClaimInfo cache
|
||||
|
||||
Reference in New Issue
Block a user