[
https://issues.apache.org/jira/browse/YUNIKORN-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated YUNIKORN-1745:
-------------------------------------
Labels: pull-request-available (was: )
> Add implementation to MockedAPIProvider.AddEventHandler()
> ---------------------------------------------------------
>
> Key: YUNIKORN-1745
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1745
> Project: Apache YuniKorn
> Issue Type: Sub-task
> Components: shim - kubernetes, test - unit
> Reporter: Peter Bacsko
> Assignee: Peter Bacsko
> Priority: Major
> Labels: pull-request-available
>
> Currently, the implementation of MockedAPIProvider.AddEventHandler() is empty:
> {noformat}
> func (m *MockedAPIProvider) AddEventHandler(handlers *ResourceEventHandlers) {
> // no impl
> }
> {noformat}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]