apache / incubator-kie-kogito-serverless-operator

Kubernetes operator for SonataFlow
Apache License 2.0
17 stars 42 forks source link

errorMessage metadata is not parsed correctly #532

Closed gabriel-farache closed 1 month ago

gabriel-farache commented 2 months ago

Describe the bug

When applying the enclosed sonataflow CR, the following error is thrown:

The SonataFlow "m2k" is invalid: spec.flow.states[12].metadata.errorMessage: Invalid value: "string": spec.flow.states[12].metadata.errorMessage in body must be of type object: "string"

I removed the setting of the metadata from the CR and the apply works.

When the workflow runs with the image containing the errorMessage metadata, there is no issue and the workflow behave as expected, I think this is purely an issue on the operator side

Expected behavior

No issue when applying the manifest

Actual behavior

Unexpected error

The SonataFlow "m2k" is invalid: spec.flow.states[12].metadata.errorMessage: Invalid value: "string": spec.flow.states[12].metadata.errorMessage in body must be of type object: "string"

while applying the manifest

How to Reproduce?

  1. Apply the manifest 04-sonataflow_m2k.zip
  2. See the error

Output of uname -a or ver

No response

Golang version

No response

Operator-sdk version

No response

SonataFlow Operator version or git rev

No response

Additional information

No response

gabriel-farache commented 2 months ago

In case there is an issue with mounted volumes, in this archives, you have all manifests needed serverless-workflow-move2kube-manifests.zip (the secrets contains are of no importance as the instance configured with it is already deleted)

ricardozanini commented 1 month ago

Depends on:

ricardozanini commented 1 month ago

Also depends on: