Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Currently, the implementation of MockedAPIProvider.AddEventHandler() is empty:
func (m *MockedAPIProvider) AddEventHandler(handlers *ResourceEventHandlers) { // no impl }
However, if we use MockScheduler, this method will eventually be called. If we save the handlers, we can simulate shared informers on a separate goroutine and we can send events for adding/updating/removing pods, nodes and config maps.
It's also necessary to create PodEventHandler & register general.Manager in testing mode, so we can use it properly.
Attachments
Issue Links
- is depended upon by
-
YUNIKORN-1742 Add new methods to MockScheduler to handle Kubernetes objects
- Closed
-
YUNIKORN-1748 Create test case which measures binding throughput using MockScheduler
- Closed
- links to