apache / incubator-kie-kogito-serverless-operator

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

Error when deploying a WF with the dev profile in a SPF that has persistence configured #520

Closed wmedvede closed 2 months ago

wmedvede commented 3 months ago

Describe the bug

When we deploy a workflow with the dev profile in a namespace that already has deployed a SPF with persistence configured, e.g.:

apiVersion: sonataflow.org/v1alpha08
kind: SonataFlowPlatform
metadata:
  name: sonataflow-platform
spec:
  persistence:
    postgresql:
      secretRef:
        name: postgres-secrets
        userKey: POSTGRESQL_USER
        passwordKey: POSTGRESQL_PASSWORD
      serviceRef:
        name: postgres
        databaseName: sonataflow

It looks like some of the persistence related configurations are applied to the WF producing an error. Note that a WF with the dev profile shouldn't take any persistence configuration from the SFP.

To reproduce:

1) deploy a SFP with persistence configured in a namespace my-namespace 2) deploy a WF with the dev profile in my-namespace 3) see the logs for the WF's Pod for the errors.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

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