mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Add more comments for HandlerImpl struct
This commit is contained in:
parent
676e28ff7a
commit
1d4e1942d8
@ -61,12 +61,14 @@ type Handler interface {
|
|||||||
type HandlerImpl struct {
|
type HandlerImpl struct {
|
||||||
// TODO: consider to change this to RWMutex.
|
// TODO: consider to change this to RWMutex.
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
|
// devicePluginManager is an implementation of deviceplugin.Manager interface.
|
||||||
devicePluginManager Manager
|
devicePluginManager Manager
|
||||||
// activePods is a method for listing active pods on the node
|
// activePods is a method for listing active pods on the node
|
||||||
// so the amount of pluginResources requested by existing pods
|
// so the amount of pluginResources requested by existing pods
|
||||||
// could be counted when updating allocated devices
|
// could be counted when updating allocated devices
|
||||||
activePods ActivePodsFunc
|
activePods ActivePodsFunc
|
||||||
// devicePluginManagerMonitorCallback is used for testing only.
|
// devicePluginManagerMonitorCallback is used for updating devices' states in one time call.
|
||||||
|
// e.g. a new device is advertised, two old devices are deleted and a running device fails.
|
||||||
devicePluginManagerMonitorCallback MonitorCallback
|
devicePluginManagerMonitorCallback MonitorCallback
|
||||||
// allDevices contains all of registered resourceNames and their exported device IDs.
|
// allDevices contains all of registered resourceNames and their exported device IDs.
|
||||||
allDevices map[string]sets.String
|
allDevices map[string]sets.String
|
||||||
|
Loading…
Reference in New Issue
Block a user