Skip to content

Custom event filter for controllers #404

Closed
@lburgazzoli

Description

@lburgazzoli

By default the each controller implements a generation-based event filtering [1] thus a controller won't receive updates when i.,e. a status field is changed and if a controller need to react upon changes in the status field, the generation-based event filtering can be turned off i.e. by setting quarkus.operator-sdk.controllers."${controller-name}".generation-aware = false for quarkus based operators.

It would be nice to have some more options here so instead of having a simple property to turn on/of generation-based filtering it would be nice to give to the operators developer a chance to provide a custom filter, i.e. a custom strategy could be injected upon controller initialization i.e. within the ResourceController::init method

[1] https://blog.container-solutions.com/a-deep-dive-into-the-java-operator-sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurekind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions