Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1d4e1942
Commit
1d4e1942
authored
Oct 26, 2017
by
Penghao Cen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more comments for HandlerImpl struct
parent
676e28ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
device_plugin_handler.go
pkg/kubelet/cm/deviceplugin/device_plugin_handler.go
+3
-1
No files found.
pkg/kubelet/cm/deviceplugin/device_plugin_handler.go
View file @
1d4e1942
...
@@ -61,12 +61,14 @@ type Handler interface {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment