Merge pull request #88917 from adelina-t/fix_pod_admit_handler

Implement noopWindowsResourceAllocator
This commit is contained in:
Kubernetes Prow Robot 2020-03-11 07:45:37 -07:00 committed by GitHub
commit a37d68ec05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,14 @@ type containerManagerImpl struct {
nodeConfig NodeConfig
}
type noopWindowsResourceAllocator struct{}
func (ra *noopWindowsResourceAllocator) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
return lifecycle.PodAdmitResult{
Admit: true,
}
}
func (cm *containerManagerImpl) Start(node *v1.Node,
activePods ActivePodsFunc,
sourcesReady config.SourcesReady,
@ -178,7 +186,7 @@ func (cm *containerManagerImpl) ShouldResetExtendedResourceCapacity() bool {
}
func (cm *containerManagerImpl) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler {
return nil
return &noopWindowsResourceAllocator{}
}
func (cm *containerManagerImpl) UpdateAllocatedDevices() {