7.3. Persistence configuration precedence rules
You can use SonataFlow custom resource (CR) persistence independently or alongside SonataFlowPlatform CR persistence. If a SonataFlowPlatform CR persistence configuration exists in the current namespace, the following rules determine which persistence configuration applies:
-
If the
SonataFlowCR includes a persistence configuration, that configuration takes precedence and applies to the workflow. -
If the
SonataFlowCR does not include a persistence configuration and thespec.persistencefield is absent, the OpenShift Serverless Logic Operator uses the persistence configuration from the currentSonataFlowPlatformif any. -
To disable persistence for the workflow, explicitly set
spec.persistence: {}in theSonataFlowCR. This configuration ensures the workflow does not inherit persistence settings from theSonataFlowPlatformCR.