Skip to content

Commit 7a699db

Browse files
Merge pull request #118 from domhanak/SRVLOGIC-516
SRVLOGIC-516: Update midstream documenation for 1.35.0
2 parents e069326 + fd2addd commit 7a699db

24 files changed

+885
-243
lines changed

antora.yml

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ asciidoc:
1919
# Serverless Logic - Names, labels and similar
2020
#
2121
product_name: OpenShift Serverless Logic
22-
kogito_version_redhat: 9.100.0.redhat-00004
23-
kogito_branch: 9.100.x-prod
22+
kogito_branch: 9.102.x-prod
2423
operator_name: Serverless Logic Operator
2524
operator_installation_namespace: openshift-serverless-logic
25+
sonataflow_vscode_extension_name: KIE Serverless Workflow Editor
2626
operator_controller_config: sonataflow-operator-controllers-config
27+
operator_controller_manager_deployment_name: logic-operator-rhel8-controller-manager
2728
quarkus_platform: com.redhat.quarkus.platform
2829
kogito_sw_ga: org.apache.kie.sonataflow:sonataflow-quarkus
2930
data_index_ref: Data Index
@@ -33,10 +34,12 @@ asciidoc:
3334
operator_openshift_catalog: logic-rhel8-operator
3435
operator_k8s_keyword: sonataflow
3536
operator_k8s_subscription: my-sonataflow-operator
37+
container_image_registry_base: registry.redhat.io/openshift-serverless-1
38+
sonataflow_operator_imagename: registry.redhat.io/openshift-serverless-1/logic-rhel8-operator
3639
osl_kn_cli_imagename: registry.redhat.io/openshift-serverless-1/kn-workflow-cli-artifacts-rhel8
37-
kogito_devservices_imagename: registry.redhat.io/openshift-serverless-1/logic-data-index-ephemeral-rhel8
3840
sonataflow_devmode_imagename: registry.redhat.io/openshift-serverless-1/logic-swf-devmode-rhel8
3941
sonataflow_builder_imagename: registry.redhat.io/openshift-serverless-1/logic-swf-builder-rhel8
42+
sonataflow_builder_configmap_name: logic-operator-rhel8-builder-config
4043
sonataflow_dataindex_ephemeral_imagename: registry.redhat.io/openshift-serverless-1/logic-data-index-ephemeral-rhel8
4144
sonataflow_dataindex_postgresql_imagename: registry.redhat.io/openshift-serverless-1/logic-data-index-postgresql-rhel8
4245
sonataflow_devmode_devui_url: /q/dev-ui/org.apache.kie.sonataflow.sonataflow-quarkus-devui/
@@ -51,30 +54,34 @@ asciidoc:
5154
jobs_service_image_postgresql_name: logic-jobs-service-postgresql-rhel8
5255
jobs_service_image_postgresql: registry.redhat.io/openshift-serverless-1/logic-jobs-service-postgresql-rhel8
5356
jobs_service_image_postgresql_url: https://catalog.redhat.com/software/containers/openshift-serverless-1/logic-jobs-service-postgresql-rhel8/6614eddbaeb155f6aae45385
54-
jobs_service_image_usage_url: https://github.com/kiegroup/kogito-images/tree/9.100.x-prod#jobs-services-all-in-one
5557

5658
#
5759
# Versions
5860
#
59-
quarkus_version: 3.8.4.redhat-00002
60-
quarkus_platform_version: 3.8.4.redhat-00002
61+
quarkus_version: 3.8.6.redhat-00004
62+
quarkus_platform_version: 3.8.6.SP2-redhat-00002
6163
java_min_version: 17+
6264
maven_min_version: 3.9.3
6365
graalvm_min_version: 22.3.0
6466
spec_version: 0.8
6567
vscode_version: 1.84.0
66-
kn_cli_version: 1.33.0
68+
kn_cli_version: 1.35.0
6769
docker_min_version: 20.10.7
6870
docker_compose_min_version: 1.27.2
6971
kubernetes_version: 1.26
7072
openshift_version_min: 4.12
71-
openshift_version_max: 4.15
72-
knative_version: 1.13
73-
knative_serving_version: 1.13
74-
knative_eventing_version: 1.13
75-
kogito_version: 9.100.0.redhat-00004
73+
openshift_version_max: 4.17
74+
knative_version: 1.15
75+
knative_serving_version: 1.15
76+
knative_eventing_version: 1.15
77+
apache_kie_latest_version: 10.0.0
78+
kogito_version: 9.102.0.redhat-00005
79+
kogito_version_redhat: 9.102.0.redhat-00005
80+
product_version_short: 1.35
81+
product_version_long: 1.35.0
82+
product_version_previous_long: 1.34.0
7683
# only used in downstream
77-
operator_version: 1.33.0
84+
operator_version: 1.35.0
7885

7986
# Persistence extensions for the kogito-swf-builder
8087
groupId_quarkus-agroal: io.quarkus
@@ -89,14 +96,17 @@ asciidoc:
8996
#
9097
# URLs
9198
#
92-
kogito_examples_repository_url: https://github.com/kiegroup/kogito-examples/tree/9.100.x-prod
93-
kogito_sw_examples_url: https://github.com/kiegroup/kogito-examples/tree/9.100.x-prod/serverless-workflow-examples
94-
kogito_sw_operator_examples_url: https://github.com/kiegroup/kogito-examples/tree/9.100.x-prod/serverless-operator-examples
99+
images_distributions_url: https://catalog.redhat.com/
100+
apple_support_url: https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unknown-developer-mh40616/mac
101+
kogito_examples_repository_url: https://github.com/kiegroup/kogito-examples/tree/{kogito_branch}
102+
kogito_operator_repository_rawcontent_url: https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/
103+
kogito_sw_examples_url: https://github.com/kiegroup/kogito-examples/tree/{kogito_branch}/serverless-workflow-examples
104+
kogito_sw_operator_examples_url: https://github.com/kiegroup/kogito-examples/tree/{kogito_branch}/serverless-operator-examples
95105
kogito_examples_url: https://github.com/kiegroup/kogito-examples.git
96-
kogito_apps_url: https://github.com/kiegroup/kogito-apps/tree/9.100.x-prod
97-
kogito_runtimes_url: https://github.com/kiegroup/kogito-runtimes/tree/9.100.x-prod
98-
kogito_runtimes_swf_url: https://github.com/kiegroup/kogito-runtimes/tree/9.100.x-prod/kogito-serverless-workflow/
99-
kogito_runtimes_swf_test_url: https://github.com/kiegroup/kogito-runtimes/tree/9.100.x-prod/kogito-serverless-workflow/kogito-serverless-workflow-executor-tests/src/test/java/org/kie/kogito/serverless/workflow/executor
106+
kogito_apps_url: https://github.com/kiegroup/kogito-apps/tree/{kogito_branch}
107+
kogito_runtimes_url: https://github.com/kiegroup/kogito-runtimes/tree/{kogito_branch}
108+
kogito_runtimes_swf_url: https://github.com/kiegroup/kogito-runtimes/tree/{kogito_branch}/kogito-serverless-workflow/
109+
kogito_runtimes_swf_test_url: https://github.com/kiegroup/kogito-runtimes/tree/{kogito_branch}/kogito-serverless-workflow/kogito-serverless-workflow-executor-tests/src/test/java/org/kie/kogito/serverless/workflow/executor
100110
quarkus_cli_url: https://quarkus.io/guides/cli-tooling
101111
spec_website_url: https://serverlessworkflow.io/
102112
spec_doc_url: https://github.com/serverlessworkflow/specification/blob/0.8.x/specification.md
@@ -106,7 +116,7 @@ asciidoc:
106116
open_api_spec_url: https://spec.openapis.org/oas/v3.1.0.html
107117
open_api_swagger_spec_url: https://swagger.io/docs/specification
108118
quarkus_openapi_gen_url: https://github.com/quarkiverse/quarkus-openapi-generator
109-
kn_workflow_plugin_releases_url: https://developers.redhat.com/content-gateway/rest/mirror/pub/cgw/serverless-logic/1.33.0/
119+
kn_workflow_plugin_releases_url: https://developers.redhat.com/content-gateway/rest/mirror/pub/cgw/serverless-logic/{product_version_long}/
110120
quarkus_guides_base_url: https://quarkus.io/guides
111121
quarkus_guides_kafka_url: https://quarkus.io/guides/kafka
112122
quarkus_guides_building_native: https://quarkus.io/guides/building-native-image
@@ -130,15 +140,15 @@ asciidoc:
130140
podman_install_url: https://docs.podman.io/en/latest/
131141
kubectl_install_url: https://kubernetes.io/docs/tasks/tools/install-kubectl
132142
docker_compose_install_url: https://docs.docker.com/compose/install/
133-
kn_cli_install_url: https://docs.openshift.com/serverless/1.33/install/installing-kn.html
134-
knative_eventing_url: https://docs.openshift.com/serverless/1.33/eventing/knative-eventing.html
135-
knative_eventing_broker_url: https://docs.openshift.com/serverless/1.33/eventing/brokers/serverless-brokers.html
136-
knative_eventing_kafka_broker_url: https://docs.openshift.com/serverless/1.33/eventing/brokers/serverless-broker-types.html
137-
knative_eventing_trigger_url: https://docs.openshift.com/serverless/1.33/eventing/triggers/serverless-triggers.html
138-
knative_eventing_sink_binding_url: https://docs.openshift.com/serverless/1.33/eventing/event-sinks/serverless-event-sinks.html
139-
knative_quickstart_url: https://docs.openshift.com/serverless/1.33/install/installing-kn.html
140-
knative_serving_install_yaml_url: https://docs.openshift.com/serverless/1.33/install/installing-knative-serving.html
141-
knative_eventing_install_yaml_url: https://docs.openshift.com/serverless/1.33/install/installing-knative-eventing.html
143+
kn_cli_install_url: https://docs.openshift.com/serverless/{product_version_short}/install/installing-kn.html
144+
knative_eventing_url: https://docs.openshift.com/serverless/{product_version_short}/eventing/knative-eventing.html
145+
knative_eventing_broker_url: https://docs.openshift.com/serverless/{product_version_short}/eventing/brokers/serverless-brokers.html
146+
knative_eventing_kafka_broker_url: https://docs.openshift.com/serverless/{product_version_short}/eventing/brokers/serverless-broker-types.html
147+
knative_eventing_trigger_url: https://docs.openshift.com/serverless/{product_version_short}/eventing/triggers/serverless-triggers.html
148+
knative_eventing_sink_binding_url: https://docs.openshift.com/serverless/{product_version_short}/eventing/event-sinks/serverless-event-sinks.html
149+
knative_quickstart_url: https://docs.openshift.com/serverless/{product_version_short}/install/installing-kn.html
150+
knative_serving_install_yaml_url: https://docs.openshift.com/serverless/{product_version_short}/install/installing-knative-serving.html
151+
knative_eventing_install_yaml_url: https://docs.openshift.com/serverless/{product_version_short}/install/installing-knative-eventing.html
142152
kafka_doc_url: https://kafka.apache.org/documentation/
143153
node_install_url: https://nodejs.org/en/download/package-manager/
144154
pnpm_install_url: https://pnpm.io/installation
@@ -187,9 +197,8 @@ asciidoc:
187197
job_service_xref: xref:job-services/core-concepts.adoc
188198

189199
# Tag to use with community-only images
190-
operator_community_prod_yaml: https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/9.100.x-prod/operator.yaml
191-
operator_community_prod_root: https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/9.100.x-prod
192-
sonataflow_operator_imagename: registry.redhat.io/openshift-serverless-1/logic-rhel8-operator
200+
operator_community_prod_yaml: https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/{kogito_branch}/operator.yaml
201+
operator_community_prod_root: https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/{kogito_branch}
193202
java_install: 'https://www.java.com/en/download/help/download_options.html'
194203
maven_install: 'https://maven.apache.org/install.html'
195204
docker_install: 'https://docs.docker.com/engine/install/'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[source,yam]
2+
----
3+
apiVersion: sonataflow.org/v1alpha08
4+
kind: SonataFlowPlatform
5+
metadata:
6+
name: sonataflow-platform-example
7+
namespace: example-namespace
8+
spec:
9+
eventing:
10+
broker:
11+
ref:
12+
name: example-broker <1>
13+
namespace: example-broker-namespace <2>
14+
apiVersion: eventing.knative.dev/v1
15+
kind: Broker
16+
----
17+
18+
<1> Name of the Knative Eventing Broker.
19+
<2> Optional: Defines the namespace of the Knative Eventing Broker. Defaults to the SonataFlowPlatform namespace. We recommend creating the Knative Eventing Broker in the same namespace as the SonataFlowPlatform.
20+
21+
[NOTE]
22+
====
23+
In production environments, you must use a production-ready broker, like the link:{knative_eventing_kafka_broker_url}[Knative Kafka Broker].
24+
====

modules/serverless-logic/pages/cloud/index.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ xref:cloud/operator/using-persistence.adoc[]
128128
Learn how to define the workflow `Persistence` field to allow the workflow to store its context
129129
--
130130

131+
[.card]
132+
--
133+
[.card-title]
134+
xref:cloud/operator/enabling-jobs-service.adoc[]
135+
[.card-description]
136+
Learn how to enable the Jobs Service with Operator
137+
--
138+
131139
[.card]
132140
--
133141
[.card-title]

modules/serverless-logic/pages/cloud/operator/add-custom-ca-to-a-workflow-pod.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ spec:
136136

137137
Similar to a deployment spec, a serverless workflow has a spec.podTemplate, with minor differences, but the change is almost identical.
138138
In this case, we are mounting some ingress ca-bundle because we want our workflow to reach the `.apps.my-cluster-name.my-cluster-domain` SSL endpoint.
139+
140+
In this example, we pull the ingress CA of OpenShift's ingress deployment because this is the CA that signs the target routes' certificates. It can be any CA that is signing the target service certificate.
141+
Here's how to copy the ingress ca cert to the desired namespace:
142+
143+
[source,shell]
144+
---
145+
kubectl config set-context --current --namespace=my-namespace
146+
kubectl get cm -n openshift-config-managed default-ingress-cert -o yaml | awk '!/namespace:.*$/' | sed 's/default-ingress-cert/ingress-ca/' | kubectl create -f -
147+
---
148+
139149
Here is the relevant spec section of a workflow with the changes:
140150

141151
[source,yaml]

modules/serverless-logic/pages/cloud/operator/build-and-deploy-workflows.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ kubectl patch sonataflowplatform <name> --patch 'spec:\n build:\n config:
5757
[#customize-base-build]
5858
=== Customize the base build Dockerfile
5959

60-
The operator uses the `ConfigMap` named `logic-operator-builder-config` in the operator's installation namespace ({operator_installation_namespace}) to configure and run the workflow build process.
60+
The operator uses the `ConfigMap` named `{sonataflow_builder_configmap_name}` in the operator's installation namespace ({operator_installation_namespace}) to configure and run the workflow build process.
6161
You can change the `Dockerfile` entry in this `ConfigMap` to tailor the Dockerfile to your needs. Just be aware that this can break the build process.
6262

6363
.Example of the sonataflow-operator-builder-config `ConfigMap`
@@ -83,8 +83,8 @@ data:
8383
-Djava.util.logging.manager=org.jboss.logmanager.LogManager\"\nENV JAVA_APP_JAR=\"/deployments/quarkus-run.jar\"\n"
8484
kind: ConfigMap
8585
metadata:
86-
name: sonataflow-operator-builder-config
87-
namespace: sonataflow-operator-system
86+
name: {sonataflow_builder_configmap_name}
87+
namespace: {operator_installation_namespace}
8888
----
8989

9090
[WARNING]
@@ -355,7 +355,7 @@ spec:
355355
strategyOptions:
356356
KanikoBuildCacheEnabled: "true"
357357
registry:
358-
address: registry.redhat.io/openshift-serverless-1 <1>
358+
address: {container_image_registry_base} <1>
359359
secret: regcred <2>
360360
----
361361

@@ -429,7 +429,7 @@ If you are running on OpenShift, you have access to the Red Hat's supported regi
429429

430430
[source,bash,subs="attributes+"]
431431
----
432-
kubectl edit cm/sonataflow-operator-builder-config -n {operator_installation_namespace}
432+
kubectl edit cm/{sonataflow_builder_configmap_name} -n {operator_installation_namespace}
433433
----
434434

435435
In your editor, change the first line in the `Dockerfile` entry where it reads `FROM {sonataflow_builder_imagename}:{operator_version}` to the desired image.

0 commit comments

Comments
 (0)