Skip to content

Commit

Permalink
dra kubelet: publish NodeResourceSlices
Browse files Browse the repository at this point in the history
The information is received from the DRA driver plugin through a new gRPC
streaming interface. This is backwards compatible with old DRA driver kubelet
plugins, their gRPC server will return "not implemented" and that can be
handled by kubelet. Therefore no API break is needed.

However, DRA drivers need to be updated because the Go API changed. They can
return
    status.New(codes.Unimplemented, "no node resource support").Err()
if they don't support the new ListAndWatchResources method and
structured parameters.

The controller in kubelet then synchronizes this information from the driver
with NodeResourceSlice objects, creating, updating and deleting them as needed.

Kubernetes-commit: d59676a54531b6e135c0fbbe6b51c530f1150653
  • Loading branch information
pohly authored and k8s-publishing-bot committed Feb 26, 2024
1 parent 93ffcc7 commit 65ef77b
Show file tree
Hide file tree
Showing 2 changed files with 452 additions and 39 deletions.
Loading

0 comments on commit 65ef77b

Please sign in to comment.