Skip to content

Commit 650f7c2

Browse files
operator sonataflow-operator (10.1.0)
1 parent a2309af commit 650f7c2

11 files changed

+28847
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: v1
2+
data:
3+
DEFAULT_WORKFLOW_EXTENSION: .sw.json
4+
Dockerfile: "# Licensed to the Apache Software Foundation (ASF) under one\n# or
5+
more contributor license agreements. See the NOTICE file\n# distributed with
6+
this work for additional information\n# regarding copyright ownership. The ASF
7+
licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\");
8+
you may not use this file except in compliance\n# with the License. You may obtain
9+
a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#
10+
Unless required by applicable law or agreed to in writing,\n# software distributed
11+
under the License is distributed on an\n# \"AS IS\" BASIS, WITHOUT WARRANTIES
12+
OR CONDITIONS OF ANY\n# KIND, either express or implied. See the License for
13+
the\n# specific language governing permissions and limitations\n# under the License.\n\nFROM
14+
docker.io/apache/incubator-kie-sonataflow-builder:10.1.0 AS builder\n\n# variables
15+
that can be overridden by the builder\n# To add a Quarkus extension to your application\nARG
16+
QUARKUS_EXTENSIONS\n# Args to pass to the Quarkus CLI add extension command\nARG
17+
QUARKUS_ADD_EXTENSION_ARGS\n# Additional java/mvn arguments to pass to the builder\nARG
18+
MAVEN_ARGS_APPEND\n\n# Copy from build context to skeleton resources project\nCOPY
19+
--chown=1001 . ./resources\n\nRUN /home/kogito/launch/build-app.sh ./resources\n
20+
\ \n#=============================\n# Runtime Run\n#=============================\nFROM
21+
registry.access.redhat.com/ubi9/openjdk-17-runtime:latest\n\nENV LANG='en_US.UTF-8'
22+
LANGUAGE='en_US:en'\n \n# We make four distinct layers so if there are application
23+
changes the library layers can be re-used\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/lib/
24+
/deployments/lib/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/*.jar
25+
/deployments/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/app/
26+
/deployments/app/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/quarkus/
27+
/deployments/quarkus/\n\nEXPOSE 8080\nUSER 185\nENV AB_JOLOKIA_OFF=\"\"\nENV JAVA_OPTS=\"-Dquarkus.http.host=0.0.0.0
28+
-Djava.util.logging.manager=org.jboss.logmanager.LogManager\"\nENV JAVA_APP_JAR=\"/deployments/quarkus-run.jar\"\n"
29+
kind: ConfigMap
30+
metadata:
31+
labels:
32+
app.kubernetes.io/name: sonataflow-operator
33+
name: sonataflow-operator-builder-config
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
apiVersion: v1
19+
kind: Service
20+
metadata:
21+
creationTimestamp: null
22+
labels:
23+
app.kubernetes.io/name: sonataflow-operator
24+
name: sonataflow-operator-controller-manager-metrics-service
25+
spec:
26+
ports:
27+
- name: https
28+
port: 8443
29+
protocol: TCP
30+
targetPort: https
31+
selector:
32+
app.kubernetes.io/name: sonataflow-operator
33+
status:
34+
loadBalancer: {}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
apiVersion: v1
2+
data:
3+
controllers_cfg.yaml: |
4+
# Licensed to the Apache Software Foundation (ASF) under one
5+
# or more contributor license agreements. See the NOTICE file
6+
# distributed with this work for additional information
7+
# regarding copyright ownership. The ASF licenses this file
8+
# to you under the Apache License, Version 2.0 (the
9+
# "License"); you may not use this file except in compliance
10+
# with the License. You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing,
15+
# software distributed under the License is distributed on an
16+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
# KIND, either express or implied. See the License for the
18+
# specific language governing permissions and limitations
19+
# under the License.
20+
21+
# The default size of Kaniko PVC when using the internal operator builder manager
22+
defaultPvcKanikoSize: 1Gi
23+
# How much time (in seconds) to wait for a devmode workflow to start.
24+
# This information is used for the controller manager to create new devmode containers and setup the healthcheck probes.
25+
healthFailureThresholdDevMode: 50
26+
# Default image used internally by the Operator Managed Kaniko builder to create the warmup pods
27+
kanikoDefaultWarmerImageTag: gcr.io/kaniko-project/warmer:v1.9.0
28+
# Default image used internally by the Operator Managed Kaniko builder to create the executor pods
29+
kanikoExecutorImageTag: gcr.io/kaniko-project/executor:v1.9.0
30+
# The Jobs Service image to use, if empty the operator will use the default Apache Community one based on the current operator's version
31+
jobsServicePostgreSQLImageTag: "docker.io/apache/incubator-kie-kogito-jobs-service-postgresql:10.1.0"
32+
jobsServiceEphemeralImageTag: "docker.io/apache/incubator-kie-kogito-jobs-service-ephemeral:10.1.0"
33+
# The Data Index image to use, if empty the operator will use the default Apache Community one based on the current operator's version
34+
dataIndexPostgreSQLImageTag: "docker.io/apache/incubator-kie-kogito-data-index-postgresql:10.1.0"
35+
dataIndexEphemeralImageTag: "docker.io/apache/incubator-kie-kogito-data-index-ephemeral:10.1.0"
36+
# The Kogito PostgreSQL DB Migrator image to use (TBD: to replace with apache image)
37+
dbMigratorToolImageTag: "docker.io/apache/kie-kogito-db-migrator-tool:10.1.0"
38+
# SonataFlow base builder image used in the internal Dockerfile to build workflow applications in preview profile
39+
# Order of precedence is:
40+
# 1. SonataFlowPlatform in the given namespace
41+
# 2. This configuration
42+
# 3. The FROM in the Dockerfile in the operator's namespace "sonataflow-operator-builder-config" configMap.
43+
# If 1 or 2, the FROM tag will be replaced by the tag se there.
44+
# If empty the operator will use the default Apache Community one based on the current operator's version.
45+
sonataFlowBaseBuilderImageTag: "docker.io/apache/incubator-kie-sonataflow-builder:10.1.0"
46+
# The image to use to deploy SonataFlow workflow images in devmode profile.
47+
# If empty the operator will use the default Apache Community one based on the current operator's version.
48+
sonataFlowDevModeImageTag: "docker.io/apache/incubator-kie-sonataflow-devmode:10.1.0"
49+
# The default name of the builder configMap in the operator's namespace
50+
builderConfigMapName: "sonataflow-operator-builder-config"
51+
# Quarkus extensions required for workflows persistence. These extensions are used by the SonataFlow build system,
52+
# in cases where the workflow being built has configured postgresql persistence.
53+
postgreSQLPersistenceExtensions:
54+
- groupId: io.quarkus
55+
artifactId: quarkus-jdbc-postgresql
56+
- groupId: io.quarkus
57+
artifactId: quarkus-agroal
58+
- groupId: org.kie
59+
artifactId: kie-addons-quarkus-persistence-jdbc
60+
# If true, the workflow deployments will be configured to send accumulated workflow status change events to the Data
61+
# Index Service reducing the number of produced events. Set to false to send individual events.
62+
kogitoEventsGrouping: true
63+
# If true, the accumulated workflow status change events will be sent in binary mode. (reduces the evens size)
64+
kogitoEventsGroupingBinary: true
65+
# If true, the accumulated workflow status change events, when sent in binary mode, will be gzipped at the cost of
66+
# some performance.
67+
kogitoEventsGroupingCompress: false
68+
kind: ConfigMap
69+
metadata:
70+
labels:
71+
app.kubernetes.io/name: sonataflow-operator
72+
name: sonataflow-operator-controllers-config
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
apiVersion: rbac.authorization.k8s.io/v1
19+
kind: ClusterRole
20+
metadata:
21+
creationTimestamp: null
22+
labels:
23+
app.kubernetes.io/name: sonataflow-operator
24+
name: sonataflow-operator-metrics-reader
25+
rules:
26+
- nonResourceURLs:
27+
- /metrics
28+
verbs:
29+
- get

0 commit comments

Comments
 (0)