mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Device Plugin Kubelet integration
This commit is contained in:
committed by
Jiaying Zhang
parent
b563101efb
commit
c4a1c97329
@@ -117,6 +117,8 @@ type containerManagerImpl struct {
|
||||
recorder record.EventRecorder
|
||||
// Interface for QoS cgroup management
|
||||
qosContainerManager QOSContainerManager
|
||||
// Interface for device plugin management.
|
||||
devicePluginHdler DevicePluginHandler
|
||||
}
|
||||
|
||||
type features struct {
|
||||
@@ -820,3 +822,13 @@ func (cm *containerManagerImpl) GetCapacity() v1.ResourceList {
|
||||
defer cm.RUnlock()
|
||||
return cm.capacity
|
||||
}
|
||||
|
||||
// GetDevicePluginHandler returns the DevicePluginHandler
|
||||
func (m *containerManagerImpl) GetDevicePluginHandler() DevicePluginHandler {
|
||||
return m.devicePluginHdler
|
||||
}
|
||||
|
||||
// SetDevicePluginHandler sets the DevicePluginHandler
|
||||
func (m *containerManagerImpl) SetDevicePluginHandler(d DevicePluginHandler) {
|
||||
m.devicePluginHdler = d
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user