You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Peter Bacsko (Jira)" <ji...@apache.org> on 2023/05/16 16:37:00 UTC
[jira] [Created] (YUNIKORN-1745) Add implementation to MockedAPIProvider.AddEventHandler()
Peter Bacsko created YUNIKORN-1745:
--------------------------------------
Summary: 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
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org