Skip to content

Commit

Permalink
dra kubelet: add StructuredResourceModel to UnprepareResources call
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Klues <kklues@nvidia.com>
  • Loading branch information
klueska committed Mar 9, 2024
1 parent e69c531 commit 24e8eef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kubelet/cm/dra/manager.go
Expand Up @@ -351,6 +351,9 @@ func (m *ManagerImpl) UnprepareResources(pod *v1.Pod) error {
Name: claimInfo.ClaimName,
ResourceHandle: resourceHandle.Data,
}
if resourceHandle.StructuredData != nil {
claim.StructuredResourceHandle = []*resourceapi.StructuredResourceHandle{resourceHandle.StructuredData}
}
batches[pluginName] = append(batches[pluginName], claim)
}
claimInfos[claimInfo.ClaimUID] = claimInfo
Expand Down

0 comments on commit 24e8eef

Please sign in to comment.