Skip to content

Commit

Permalink
Merge pull request #123831 from klueska/fix-unprepare-resources
Browse files Browse the repository at this point in the history
Add StructuredResourceModel to UnprepareResources call
  • Loading branch information
k8s-ci-robot committed Mar 11, 2024
2 parents 05ccec2 + 13a6dcc commit b3926d1
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 b3926d1

Please sign in to comment.