Device Plugin Kubelet integration

This commit is contained in:
Renaud Gaubert
2017-08-08 16:34:13 -07:00
committed by Jiaying Zhang
parent b563101efb
commit c4a1c97329
7 changed files with 103 additions and 0 deletions

View File

@@ -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
}