Files
kubernetes/pkg/kubelet
Patrick Ohly 032a9eaede DRA kubelet: code cleanup
Replaced the Manager interface with a simple struct. There was no need for the
interface.

Replaced the global instance of the DRA plugins store with a fresh instanced
owned by the manager. This makes unit testing a bit easier (no need to restore
state, would enable parallelizing long-running tests).

Simplified the plugin.PluginsStore type to just "plugin.Store" because it
stuttered. The Plugin type is kept because having one struct named after its
package is one common exception from the "don't stutter" guideline.
For the sake of clarify, the package gets imported as "draplugin" (=
<parent dir>/<package>).

Removed unused NewManager "node" parameter and replaced direct construction of
cache and manager with calls to NewManager because that is how the manager
should get constructed (less code, too).

Fixed incorrect description of Manager: the plugin store is the entity which
manages drivers, not the manager. The manager is focused on the DRA logic
around ResourceClaims.
2025-06-02 18:30:04 +02:00
..
2025-06-02 18:30:04 +02:00
2025-05-14 11:05:46 -07:00
2025-05-07 11:52:36 +02:00
2025-05-20 22:41:19 +08:00