-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KOGITO-9218] - Update SonataFlowPlatform struct (#427)
* [KOGITO-9218] - Update SonataFlowPlatform struct Signed-off-by: Ricardo Zanini <zanini@redhat.com> * Adding migration guide for 1.43.0 Signed-off-by: Ricardo Zanini <zanini@redhat.com> * Update serverlessworkflow/modules/ROOT/pages/cloud/operator/build-and-deploy-workflows.adoc Co-authored-by: Kalyani Desai <43639538+kaldesai@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Kalyani Desai <43639538+kaldesai@users.noreply.github.com> * Update index.adoc --------- Signed-off-by: Ricardo Zanini <zanini@redhat.com> Co-authored-by: Tristan Radisson <tristan.radisson@gmail.com> Co-authored-by: Kalyani Desai <43639538+kaldesai@users.noreply.github.com>
- Loading branch information
1 parent
e2a45e9
commit 96ff36c
Showing
5 changed files
with
136 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
serverlessworkflow/modules/ROOT/pages/cloud/operator/migration-guide.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# 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: | ||
+ | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
apiVersion: sonataflow.org/v1alpha08 | ||
kind: SonataFlowPlatform | ||
metadata: | ||
name: sonataflow-platform | ||
spec: | ||
platform: | ||
registry: | ||
address: quay.io/kiegroup | ||
secret: regcred | ||
---- | ||
+ | ||
You should change it to: | ||
+ | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
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: | ||
+ | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
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: | ||
+ | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
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: | ||
+ | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
apiVersion: sonataflow.org/v1alpha08 | ||
kind: SonataFlowPlatform | ||
metadata: | ||
name: sonataflow-platform | ||
spec: | ||
devModeBaseImage: quay.io/johndoe/myworkflow:latest | ||
---- | ||
+ | ||
You should change it to: | ||
+ | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
apiVersion: sonataflow.org/v1alpha08 | ||
kind: SonataFlowPlatform | ||
metadata: | ||
name: sonataflow-platform | ||
spec: | ||
devMode: | ||
baseImage: quay.io/johndoe/myworkflow:latest | ||
---- |