Skip to content

Introduce reconcile all event mode #2893

@csviri

Description

@csviri

We could categorize controller into two groups, when they use finalizers and when they don't. The framework not handles these cases intelligently. Like we add finalizers, and trigger the cleanup funtion when needed. Howeever there are corner cases whis is hard to cover with this approach:

  1. What if user maintains an expicit in memory caches, that wan't to cleanup when on delete event. But don't want to use finalizers
  2. What if some of the custom resources requires finalizers but others don't.

So for sake of completeness would like to introduce "all event mode", where the reconcile function will be triggered on every event. And user is free to manage with finalizers, react on delete event inside the reconcile method.

If cleaner is implemented, the cleanup method will be called from the point that the resource is marked for deletion, and for delete event. If not reconcile method is called in all cases, on every event (including delete).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions