Closed
Description
Currently CachingInboundEventSource
has an issue with initialization of state. Currently the cache is only populated explicitly calling the handleResourceEvent
. Therefore when related primary resources is reconciled the state might not be initialized.
To fix this a resource fetching mechanism could be implemented, similarly as in PerResourcePollingEventSource
, thus first time the primary resource appears it will initialize the state by fetching the target resource.
Optionally could have a cache expiration period, for the cases if some event is lost, making sure that if a longer period the resource is not refreshed, it is fetched it again.