Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to weekly OSL build with eventing for K8S #272

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/orchestrator-k8s/templates/sonataflow-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ subjects:
apiVersion: v1
data:
DEFAULT_WORKFLOW_EXTENSION: .sw.json
Dockerfile: "FROM quay.io/kiegroup/kogito-swf-builder-nightly:latest AS builder\n\n# variables that can be overridden by the builder\n# To add a Quarkus extension to your application\nARG QUARKUS_EXTENSIONS\n# Args to pass to the Quarkus CLI add extension command\nARG QUARKUS_ADD_EXTENSION_ARGS\n# Additional java/mvn arguments to pass to the builder\nARG MAVEN_ARGS_APPEND\n\n# Copy from build context to skeleton resources project\nCOPY --chown=1001 . ./resources\n\nRUN /home/kogito/launch/build-app.sh ./resources\n \n#=============================\n# Runtime Run\n#=============================\nFROM registry.access.redhat.com/ubi9/openjdk-17:latest\n\nENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'\n \n# We make four distinct layers so if there are application changes the library layers can be re-used\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/lib/ /deployments/lib/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/*.jar /deployments/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/app/ /deployments/app/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/quarkus/ /deployments/quarkus/\n\nEXPOSE 8080\nUSER 185\nENV AB_JOLOKIA_OFF=\"\"\nENV JAVA_OPTS=\"-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager\"\nENV JAVA_APP_JAR=\"/deployments/quarkus-run.jar\"\n"
Dockerfile: "FROM quay.io/kubesmarts/incubator-kie-sonataflow-builder:main AS builder\n\n# variables that can be overridden by the builder\n# To add a Quarkus extension to your application\nARG QUARKUS_EXTENSIONS\n# Args to pass to the Quarkus CLI add extension command\nARG QUARKUS_ADD_EXTENSION_ARGS\n# Additional java/mvn arguments to pass to the builder\nARG MAVEN_ARGS_APPEND\n\n# Copy from build context to skeleton resources project\nCOPY --chown=1001 . ./resources\n\nRUN /home/kogito/launch/build-app.sh ./resources\n \n#=============================\n# Runtime Run\n#=============================\nFROM registry.access.redhat.com/ubi9/openjdk-17:latest\n\nENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'\n \n# We make four distinct layers so if there are application changes the library layers can be re-used\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/lib/ /deployments/lib/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/*.jar /deployments/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/app/ /deployments/app/\nCOPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/quarkus/ /deployments/quarkus/\n\nEXPOSE 8080\nUSER 185\nENV AB_JOLOKIA_OFF=\"\"\nENV JAVA_OPTS=\"-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager\"\nENV JAVA_APP_JAR=\"/deployments/quarkus-run.jar\"\n"
kind: ConfigMap
metadata:
name: sonataflow-operator-builder-config
Expand Down Expand Up @@ -644,7 +644,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: quay.io/kiegroup/kogito-serverless-operator-nightly:latest
image: quay.io/kubesmarts/incubator-kie-sonataflow-operator:main
livenessProbe:
httpGet:
path: /healthz
Expand Down
10 changes: 9 additions & 1 deletion charts/orchestrator-k8s/templates/sonataflow-platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ spec:
registry:
address: quay.io/kiegroup
secret: regcred

{{- if (and (.Values.platform.eventing.broker.name) (.Values.platform.eventing.broker.namespace)) }}
eventing:
broker:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: {{ .Values.platform.eventing.broker.name }}
namespace: {{ .Values.platform.eventing.broker.namespace }}
{{- end }}
services:
dataIndex:
enabled: true
Expand Down
9 changes: 9 additions & 0 deletions charts/orchestrator-k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ labels:
- app: orchestartor
sonataflowOperator:
image: quay.io/kiegroup/kogito-serverless-operator-nightly:latest
platform:
masayag marked this conversation as resolved.
Show resolved Hide resolved
# eventing related fields
eventing:
# broker related fields
broker:
# name of the broker to use when creating triggers and sinkbindings
name: broker
# namespace where the broker is deployed
namespace: default
postgresql-persistent:
# depends on sonataflow-operator which still uses the ephemeral image.
enabled: false
Expand Down