File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ type containerManagerImpl struct {
54
54
nodeConfig NodeConfig
55
55
}
56
56
57
+ type noopWindowsResourceAllocator struct {}
58
+
59
+ func (ra * noopWindowsResourceAllocator ) Admit (attrs * lifecycle.PodAdmitAttributes ) lifecycle.PodAdmitResult {
60
+ return lifecycle.PodAdmitResult {
61
+ Admit : true ,
62
+ }
63
+ }
64
+
57
65
func (cm * containerManagerImpl ) Start (node * v1.Node ,
58
66
activePods ActivePodsFunc ,
59
67
sourcesReady config.SourcesReady ,
@@ -178,7 +186,7 @@ func (cm *containerManagerImpl) ShouldResetExtendedResourceCapacity() bool {
178
186
}
179
187
180
188
func (cm * containerManagerImpl ) GetAllocateResourcesPodAdmitHandler () lifecycle.PodAdmitHandler {
181
- return nil
189
+ return & noopWindowsResourceAllocator {}
182
190
}
183
191
184
192
func (cm * containerManagerImpl ) UpdateAllocatedDevices () {
You can’t perform that action at this time.
0 commit comments