Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1740 [Umbrella] MockScheduler improvements
  3. YUNIKORN-1745

Add implementation to MockedAPIProvider.AddEventHandler()

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              pbacsko Peter Bacsko
              pbacsko Peter Bacsko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: