kubelet(dra): fix multiple claims handling

This commit is contained in:
rogowski-piotr
2025-12-23 22:15:53 +01:00
committed by Piotr Rogowski
parent e3684b7eb2
commit dd377619c9

View File

@@ -360,10 +360,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