Make updateAllocatedDevices() as a public method and call it in

podresources api
This commit is contained in:
Takeaki Matsumoto
2019-06-27 13:21:19 +09:00
committed by MATSUMOTO TAKEAKI
parent 9a1ea1844e
commit 785fac6826
10 changed files with 36 additions and 6 deletions

View File

@@ -946,3 +946,7 @@ func (cm *containerManagerImpl) GetDevices(podUID, containerName string) []*podr
func (cm *containerManagerImpl) ShouldResetExtendedResourceCapacity() bool {
return cm.deviceManager.ShouldResetExtendedResourceCapacity()
}
func (cm *containerManagerImpl) UpdateAllocatedDevices() {
cm.deviceManager.UpdateAllocatedDevices()
}