apache / incubator-kie-kogito-serverless-operator

Kubernetes operator for SonataFlow
Apache License 2.0
15 stars 41 forks source link

Refactor SonataFlowPlatform Actions and Reconciler to avoid object updates during the reconciliation #538

Open ricardozanini opened 1 week ago

ricardozanini commented 1 week ago

Description

Currently, we call the function CreateOrUpdateWithDefaults from actions called during the reconciliation algorithm.

This function updates the SonataFlowPlatform object in the cluster. By the end of the reconciliation phase, we will have updated the object again. This redundancy must be gone.

Additionally, the Monitor action will never be called since the Service action is called before it and doesn't change the object status to a phase where the monitor action can be performed.

Implementation ideas