Skip to content

Commit

Permalink
DRA: move ResourceSlice publishing into DRA drivers
Browse files Browse the repository at this point in the history
This is a first step towards making kubelet independent of the resource.k8s.io
API versioning because it now doesn't need to copy structs defined by that API
from the driver to the API server. The next step is removing the other
direction (reading ResourceClaim status and passing the resource handle to
drivers).

The drivers must get deployed so that they have their own connection to the API
server. Securing at least the writes via a validating admission policy should
be possible.

As before, the kubelet removes all ResourceSlices for its node at startup, then
DRA drivers recreate them if (and only if) they start up again. This ensures
that there are no orphaned ResourceSlices when a driver gets removed while the
kubelet was down.

While at it, logging gets cleaned up and updated to use structured, contextual
logging as much as possible. gRPC requests and streams now use a shared,
per-process request ID and streams also get logged.

Kubernetes-commit: 616a01434756c4a818908a73b9256c9caa7d2c48
  • Loading branch information
pohly authored and k8s-publishing-bot committed Apr 11, 2024
1 parent 9d8ab9f commit 63f4c6d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 451 deletions.
Loading

0 comments on commit 63f4c6d

Please sign in to comment.