Fix #560 - Check if the .spec.flow has changed before building (#564)

* Fix #560 - Check if the .spec.flow has changed before building

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>

* Use CRC32 instead of comparing flows directly

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>

---------

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
12 files changed
tree: 4bb00fb6938903dcbba13051ce393e159bb8b1de
  1. .ci/
  2. .github/
  3. api/
  4. bddframework/
  5. bundle/
  6. cmd/
  7. config/
  8. container-builder/
  9. docs/
  10. hack/
  11. images/
  12. internal/
  13. log/
  14. test/
  15. testbdd/
  16. utils/
  17. version/
  18. workflowproj/
  19. .asf.yaml
  20. .gitignore
  21. go.mod
  22. go.sum
  23. go.work
  24. go.work.sum
  25. LICENSE
  26. Makefile
  27. operator.yaml
  28. PROJECT
  29. README.md
README.md

SonataFlow Operator

The SonataFlow Operator defines a set of Kubernetes Custom Resources to help users to deploy SonataFlow projects on Kubernetes and OpenShift.

Please visit our official documentation to know more.

Available modules for integrations

If you're a developer, and you are interested in integrating your project or application with the SonataFlow Operator ecosystem, this repository provides a few Go Modules described below.

SonataFlow Operator Types (api)

Every custom resource managed by the operator is exported in the module api. You can use it to programmatically create any custom type managed by the operator. To use it, simply run:

go get github.com/kiegroup/kogito-serverless-workflow/api

Then you can create any type programmatically, for example:

workflow := &v1alpha08.SonataFlow{
ObjectMeta: metav1.ObjectMeta{Name: w.name, Namespace: w.namespace},
Spec:       v1alpha08.SonataFlowSpec{Flow: *myWorkflowDef>}
}

You can use the Kubernetes client-go library to manipulate these objects in the cluster.

You might need to register our schemes:

    s := scheme.Scheme
utilruntime.Must(v1alpha08.AddToScheme(s))

Container Builder (container-builder)

Please see the module's README file.

Workflow Project Handler (workflowproj)

Please see the module's README file.

Development and Contributions

Contributing is easy, just take a look at our contributors'guide.