Merge pull request #88917 from adelina-t/fix_pod_admit_handler
Implement noopWindowsResourceAllocator
This commit is contained in:
		@@ -54,6 +54,14 @@ type containerManagerImpl struct {
 | 
				
			|||||||
	nodeConfig NodeConfig
 | 
						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,
 | 
					func (cm *containerManagerImpl) Start(node *v1.Node,
 | 
				
			||||||
	activePods ActivePodsFunc,
 | 
						activePods ActivePodsFunc,
 | 
				
			||||||
	sourcesReady config.SourcesReady,
 | 
						sourcesReady config.SourcesReady,
 | 
				
			||||||
@@ -178,7 +186,7 @@ func (cm *containerManagerImpl) ShouldResetExtendedResourceCapacity() bool {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (cm *containerManagerImpl) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler {
 | 
					func (cm *containerManagerImpl) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler {
 | 
				
			||||||
	return nil
 | 
						return &noopWindowsResourceAllocator{}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (cm *containerManagerImpl) UpdateAllocatedDevices() {
 | 
					func (cm *containerManagerImpl) UpdateAllocatedDevices() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user