Skip to content

errorMessage metadata is not parsed correctly #532

@gabriel-farache

Description

@gabriel-farache

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🎯 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions