Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonataFlow Operator should emit deploy and undeploy events when Data Index is available in a given namespace #458

Open
Tracked by #1201
ricardozanini opened this issue May 8, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ricardozanini
Copy link
Member

ricardozanini commented May 8, 2024

Description

Data Index supports events for marking a workflow as deployed and undeployed. Since the operator controls this behavior cluster-wide, it makes sense for it to push events directly to DI once such events occur.

The event will be pushed to the Data Index in the SonataFlowPlatform definition. That can be either cluster-wide or namespace.

For reference, this is the ProcessEventDefinition.

Implementation ideas

Every time a new workflow is deployed a new Deploy event will be emitted. We will add a finalizer to handle Undeploy events to a given Data Index.

@ricardozanini ricardozanini added the enhancement New feature or request label May 8, 2024
@ricardozanini ricardozanini self-assigned this May 8, 2024
@ricardozanini
Copy link
Member Author

@nmirasch @wmedvede @fjtirado do we have the issues to Data Index to enable listening to these events?

@fjtirado
Copy link

@ricardozanini We need following issues for this epic:

  • Operator to emit deploy and undeploy event following existing ProcessEventDefinition (I guess this can be one issue)
  • Runtime to remove current event publishing when the operator is there (we need to dicuss what happend when data index is embedded and there is not operator)
  • Data index to consume undeploy event (the current code for deploy event does not need to be touched)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants