kubernetes/pkg/kubelet/cm/deviceplugin
Jiaying Zhang 1eb4e79453 Extends deviceplugin to gracefully handle full device plugin lifecycle.
- Instead of using cm.capacity field to communicate device plugin resource
capacity, this PR changes to use an explicit cm.GetDevicePluginResourceCapacity()
function that returns device plugin resource capacity as well as any inactive
device plugin resource. Kubelet syncNodeStatus call this function during its
periodic run to update node status capacity and allocatable. After this call,
device plugin can remove the inactive device plugin resource from its allDevices
field as the update is already pushed to API server.
- Extends device plugin checkpoint data to record registered resources
so that we can finish resource removing even upon kubelet restarts.
- Passes sourcesReady from kubelet to device plugin to avoid removing
inactive pods during grace period of kubelet restart.
2017-11-20 23:40:14 -08:00
..
BUILD Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
device_plugin_stub.go Move device plugin related files under pkg/kubelet/cm/deviceplugin/. 2017-10-24 14:17:20 -07:00
endpoint.go Merging handler into manager API 2017-11-20 21:37:46 +00:00
endpoint_test.go Merging handler into manager API 2017-11-20 21:37:46 +00:00
manager.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
manager_stub.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
manager_test.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
OWNERS Adds jiayingz@ and vish@ as approvers for pkg/kubelet/cm/deviceplugin/. 2017-11-14 15:27:02 -08:00
pod_devices.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
types.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00