Skip to content

Improvements on CachingInboundEventSource #1424

Closed
@csviri

Description

@csviri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions