Migration Guide

Version 1.43.0

When migrating to version 1.43.0, you must review the SonataFlowPlatform instances.

Procedure
  1. Change the .spec.platform to .spec.build.config. For example, given that you have:

    apiVersion: sonataflow.org/v1alpha08
    kind: SonataFlowPlatform
    metadata:
      name: sonataflow-platform
    spec:
      platform:
        registry:
          address: quay.io/kiegroup
          secret: regcred

    You should change it to:

    apiVersion: sonataflow.org/v1alpha08
    kind: SonataFlowPlatform
    metadata:
      name: sonataflow-platform
    spec:
      build:
        config:
          registry:
            address: quay.io/kiegroup
            secret: regcred
  2. Change the .spec.build to .spec.build.template. For example, given that you have:

    apiVersion: sonataflow.org/v1alpha08
    kind: SonataFlowPlatform
    metadata:
      name: sonataflow-platform
    spec:
      build:
        resources:
          requests:
            memory: "64Mi"
            cpu: "250m"
          limits:
            memory: "128Mi"
            cpu: "500m"

    You should change it to:

    apiVersion: sonataflow.org/v1alpha08
    kind: SonataFlowPlatform
    metadata:
      name: sonataflow-platform
    spec:
      build:
        template:
          resources:
            requests:
              memory: "64Mi"
              cpu: "250m"
            limits:
              memory: "128Mi"
              cpu: "500m"
  3. Change the .spec.devModeBaseImage to spec.devMode.baseImage. For example, given that you have:

    apiVersion: sonataflow.org/v1alpha08
    kind: SonataFlowPlatform
    metadata:
      name: sonataflow-platform
    spec:
      devModeBaseImage: quay.io/johndoe/myworkflow:latest

    You should change it to:

    apiVersion: sonataflow.org/v1alpha08
    kind: SonataFlowPlatform
    metadata:
      name: sonataflow-platform
    spec:
      devMode:
        baseImage: quay.io/johndoe/myworkflow:latest