-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07dc5a9
commit 7001f9c
Showing
13 changed files
with
27,750 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
...sonataflow-operator/10.0.0/manifests/sonataflow-operator-builder-config_v1_configmap.yaml
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,58 @@ | ||
apiVersion: v1 | ||
data: | ||
DEFAULT_WORKFLOW_EXTENSION: .sw.json | ||
Dockerfile: | | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
FROM docker.io/apache/incubator-kie-sonataflow-builder:10.0.0 AS builder | ||
# This image name and tag is auto-replaced using environment variables during install, don't touch. | ||
# variables that can be overridden by the builder | ||
# To add a Quarkus extension to your application | ||
ARG QUARKUS_EXTENSIONS | ||
# Args to pass to the Quarkus CLI add extension command | ||
ARG QUARKUS_ADD_EXTENSION_ARGS | ||
# Additional java/mvn arguments to pass to the builder | ||
ARG MAVEN_ARGS_APPEND | ||
# Copy from build context to skeleton resources project | ||
COPY --chown=1001 . ./resources | ||
RUN /home/kogito/launch/build-app.sh ./resources | ||
#============================= | ||
# Runtime Run | ||
#============================= | ||
FROM registry.access.redhat.com/ubi9/openjdk-17-runtime:latest | ||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' | ||
# We make four distinct layers so if there are application changes the library layers can be re-used | ||
COPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/lib/ /deployments/lib/ | ||
COPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/*.jar /deployments/ | ||
COPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/app/ /deployments/app/ | ||
COPY --from=builder --chown=185 /home/kogito/serverless-workflow-project/target/quarkus-app/quarkus/ /deployments/quarkus/ | ||
EXPOSE 8080 | ||
USER 185 | ||
ENV AB_JOLOKIA_OFF="" | ||
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" | ||
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar" | ||
kind: ConfigMap | ||
metadata: | ||
name: sonataflow-operator-builder-config |
34 changes: 34 additions & 0 deletions
34
...r/10.0.0/manifests/sonataflow-operator-controller-manager-metrics-service_v1_service.yaml
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,34 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
control-plane: sonataflow-operator | ||
name: sonataflow-operator-controller-manager-metrics-service | ||
spec: | ||
ports: | ||
- name: https | ||
port: 8443 | ||
protocol: TCP | ||
targetPort: https | ||
selector: | ||
control-plane: sonataflow-operator | ||
status: | ||
loadBalancer: {} |
51 changes: 51 additions & 0 deletions
51
...taflow-operator/10.0.0/manifests/sonataflow-operator-controllers-config_v1_configmap.yaml
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,51 @@ | ||
apiVersion: v1 | ||
data: | ||
controllers_cfg.yaml: | | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# The default size of Kaniko PVC when using the internal operator builder manager | ||
defaultPvcKanikoSize: 1Gi | ||
# How much time (in seconds) to wait for a devmode workflow to start. | ||
# This information is used for the controller manager to create new devmode containers and setup the healthcheck probes. | ||
healthFailureThresholdDevMode: 50 | ||
# Default image used internally by the Operator Managed Kaniko builder to create the warmup pods | ||
kanikoDefaultWarmerImageTag: gcr.io/kaniko-project/warmer:v1.9.0 | ||
# Default image used internally by the Operator Managed Kaniko builder to create the executor pods | ||
kanikoExecutorImageTag: gcr.io/kaniko-project/executor:v1.9.0 | ||
# The Jobs Service image to use, if empty the operator will use the default Apache Community one based on the current operator's version | ||
jobsServicePostgreSQLImageTag: "" | ||
jobsServiceEphemeralImageTag: "" | ||
# The Data Index image to use, if empty the operator will use the default Apache Community one based on the current operator's version | ||
dataIndexPostgreSQLImageTag: "" | ||
dataIndexEphemeralImageTag: "" | ||
# SonataFlow base builder image used in the internal Dockerfile to build workflow applications in preview profile | ||
# Order of precedence is: | ||
# 1. SonataFlowPlatform in the given namespace | ||
# 2. This configuration | ||
# 3. The FROM in the Dockerfile in the operator's namespace "sonataflow-operator-builder-config" configMap. | ||
# If 1 or 2, the FROM tag will be replaced by the tag se there. | ||
# If empty the operator will use the default Apache Community one based on the current operator's version. | ||
sonataFlowBaseBuilderImageTag: "" | ||
# The image to use to deploy SonataFlow workflow images in devmode profile. | ||
# If empty the operator will use the default Apache Community one based on the current operator's version. | ||
sonataFlowDevModeImageTag: "" | ||
# The default name of the builder configMap in the operator's namespace | ||
builderConfigMapName: "sonataflow-operator-builder-config" | ||
kind: ConfigMap | ||
metadata: | ||
name: sonataflow-operator-controllers-config |
34 changes: 34 additions & 0 deletions
34
...sonataflow-operator/10.0.0/manifests/sonataflow-operator-manager-config_v1_configmap.yaml
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,34 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
apiVersion: v1 | ||
data: | ||
controller_manager_config.yaml: | | ||
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 | ||
kind: ControllerManagerConfig | ||
health: | ||
healthProbeBindAddress: :8081 | ||
metrics: | ||
bindAddress: 127.0.0.1:8080 | ||
webhook: | ||
port: 9443 | ||
leaderElection: | ||
leaderElect: true | ||
resourceName: 1be5e57d.kiegroup.org | ||
kind: ConfigMap | ||
metadata: | ||
name: sonataflow-operator-manager-config |
27 changes: 27 additions & 0 deletions
27
...anifests/sonataflow-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml
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,27 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
name: sonataflow-operator-metrics-reader | ||
rules: | ||
- nonResourceURLs: | ||
- /metrics | ||
verbs: | ||
- get |
44 changes: 44 additions & 0 deletions
44
...rator-sonataflowclusterplatform-viewer-role_rbac.authorization.k8s.io_v1_clusterrole.yaml
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,44 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: sonataflow-operator | ||
app.kubernetes.io/instance: sonataflowclusterplatform-viewer-role | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/part-of: sonataflow-operator | ||
name: sonataflow-operator-sonataflowclusterplatform-viewer-role | ||
rules: | ||
- apiGroups: | ||
- sonataflow.org | ||
resources: | ||
- sonataflowclusterplatforms | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- sonataflow.org | ||
resources: | ||
- sonataflowclusterplatforms/status | ||
verbs: | ||
- get |
Oops, something went wrong.