Skip to content

Commit

Permalink
DRA kubelet: adapt to v1alpha3 API
Browse files Browse the repository at this point in the history
This adds the ability to select specific requests inside a claim for a
container.

NodePrepareResources is always called, even if the claim is not used by any
container. This could be useful for drivers where that call has some effect
other than injecting CDI device IDs into containers. It also ensures that
drivers can validate configs.

The pod resource API can no longer report a class for each claim because there
is no such 1:1 relationship anymore. Instead, that API reports claim,
API devices (with driver/pool/device as ID) and CDI device IDs. The kubelet
itself doesn't extract that information from the claim. Instead, it relies on
drivers to report this information when the claim gets prepared. This isolates
the kubelet from API changes.

Because of a faulty E2E test, kubelet was told to contact the wrong driver for
a claim. This was not visible in the kubelet log output. Now changes to the
claim info cache are getting logged. While at it, naming of variables and some
existing log output gets harmonized.

Co-authored-by: Oksana Baranova <oksana.baranova@intel.com>
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>

Kubernetes-commit: 877829aeaa9b87d457bf1a3e59ae228e8aa1b1f0
  • Loading branch information
pohly authored and k8s-publishing-bot committed Jul 17, 2024
1 parent 136516c commit c4a7fd5
Show file tree
Hide file tree
Showing 4 changed files with 675 additions and 171 deletions.
Loading

0 comments on commit c4a7fd5

Please sign in to comment.