Collection of GitOps use cases to use with SonataFlow Operator.
In this example, we show the possibility to build a "single file" SonataFlow project into an image. Later, this image can be used to deploy the workflow with the SonataFlow operator.
The CI use case Build with Kaniko and Generate Manifests is meant to integrate with a CD solution, such as ArgoCD.
This pipeline will fetch a SonataFlow project repository, build the workflow image, push to a registry, generate an updated SonataFlow
manifest, and open a PR to the configuration repository.
From the configuration repository, ArgoCD will take over and use the generated manifests to deploy the workflow in the cluster.
The ArgoCD configuration is straightforward. The image below exemplifies the application:
When syncing the application with the configuration repository you can see the workflow deployed:
The SonataFlow Operator is responsible for the workflow deployment in the target cluster.
The figure below gives an overview of this CI/CD process: