kubelet/pkg/apis/dra
Kevin Klues 704590723f Update kubeletplugin API for DynamicResourceAllocation to v1alpha2
This PR makes the NodePrepareResources() and NodeUnprepareResource()
calls of the kubeletplugin API for DynamicResourceAllocation
symmetrical. It wasn't clear how one would use the set of CDIDevices
passed back in the NodeUnprepareResource() of the v1alpha1 API, and the
new API now passes back the full ResourceHandle that was originally
passed to the Prepare() call. Passing the ResourceHandle is strictly
more informative and a plugin could always (re)derive the set of
CDIDevice from it.

This is a breaking change, but this release is scheduled to break
multiple APIs for DynamicResourceAllocation, so it makes sense to do
this now instead of later.

Signed-off-by: Kevin Klues <kklues@nvidia.com>

Kubernetes-commit: 579295e727a12deadad9e084ff8efd2708707091
2023-03-13 21:38:56 +00:00
..
v1alpha2 Update kubeletplugin API for DynamicResourceAllocation to v1alpha2 2023-03-13 21:38:56 +00:00
OWNERS kubelet: add support for dynamic resource allocation 2022-07-15 14:28:18 +03:00