mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
kubelet(dra): fix multiple claims handling
This commit is contained in:
committed by
Piotr Rogowski
parent
e3684b7eb2
commit
dd377619c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user