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

errorMessage metadata is not parsed correctly #532

Closed
gabriel-farache opened this issue Sep 11, 2024 · 3 comments · Fixed by #552
Closed

errorMessage metadata is not parsed correctly #532

gabriel-farache opened this issue Sep 11, 2024 · 3 comments · Fixed by #552
Assignees
Labels
bug Something isn't working

Comments

@gabriel-farache
Copy link

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
Copy link
Author

gabriel-farache commented Sep 11, 2024

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
Copy link
Member

ricardozanini added a commit to ricardozanini/incubator-kie-kogito-serverless-operator that referenced this issue Oct 15, 2024
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@github-project-automation github-project-automation bot moved this from 📋 Backlog to 🎯 Done in 🦉 KIE Podling Board Oct 18, 2024
rgdoliveira pushed a commit to rgdoliveira/kogito-serverless-operator that referenced this issue Oct 24, 2024
…e#552)

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🎯 Done
2 participants