This is an automated email from the ASF dual-hosted git repository.
rgdoliveira pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 9f575daf ISSUE-422: remove not used osl files (#446)
9f575daf is described below
commit 9f575dafaf8eb89d0729f21f1f53e4595020c5ee
Author: Roberto Oliveira <[email protected]>
AuthorDate: Tue Apr 16 18:55:23 2024 +0200
ISSUE-422: remove not used osl files (#446)
---
.../manager/osl/SonataFlow-Builder.containerfile | 33 ------------
config/manager/osl/controller_manager_config.yaml | 11 ----
config/manager/osl/kustomization.yaml | 38 -------------
config/manager/osl/manager.yaml | 63 ----------------------
.../org.kie.kogito.osl.builder.prod/install.sh | 22 --------
.../org.kie.kogito.osl.builder.prod/module.yaml | 10 ----
6 files changed, 177 deletions(-)
diff --git a/config/manager/osl/SonataFlow-Builder.containerfile
b/config/manager/osl/SonataFlow-Builder.containerfile
deleted file mode 100644
index d09c4c40..00000000
--- a/config/manager/osl/SonataFlow-Builder.containerfile
+++ /dev/null
@@ -1,33 +0,0 @@
-FROM
registry.redhat.io/openshift-serverless-1-tech-preview/logic-swf-builder-rhel8:latest
AS builder
-
-# 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: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"
diff --git a/config/manager/osl/controller_manager_config.yaml
b/config/manager/osl/controller_manager_config.yaml
deleted file mode 100644
index 4cefd89b..00000000
--- a/config/manager/osl/controller_manager_config.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-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
diff --git a/config/manager/osl/kustomization.yaml
b/config/manager/osl/kustomization.yaml
deleted file mode 100644
index 8136aefa..00000000
--- a/config/manager/osl/kustomization.yaml
+++ /dev/null
@@ -1,38 +0,0 @@
-resources:
-- manager.yaml
-
-generatorOptions:
- disableNameSuffixHash: true
-
-configMapGenerator:
-- files:
- - controller_manager_config.yaml
- name: manager-config
-- files:
- - Dockerfile=SonataFlow-Builder.containerfile
- literals:
- - DEFAULT_WORKFLOW_EXTENSION=.sw.json
- name: builder-config
-
-apiVersion: kustomize.config.k8s.io/v1beta1
-kind: Kustomization
-images:
-- digest:
sha256:24c2e62bff1f2f7e5579b990e44206ac019bd00f5ca546b069471fc1af34ed75
- name: controller
- newName:
registry.redhat.io/openshift-serverless-1-tech-preview/logic-operator-rhel8
-# Patching the manager deployment file to add an env var with the operator
namespace in
-patchesJson6902:
-- patch: |-
- - op: add
- path: /spec/template/spec/containers/0/env
- value:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- target:
- group: apps
- kind: Deployment
- name: controller-manager
- namespace: system
- version: v1
diff --git a/config/manager/osl/manager.yaml b/config/manager/osl/manager.yaml
deleted file mode 100644
index 3a5d6512..00000000
--- a/config/manager/osl/manager.yaml
+++ /dev/null
@@ -1,63 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
- labels:
- control-plane: sonataflow-operator
- name: system
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: controller-manager
- namespace: system
- labels:
- control-plane: sonataflow-operator
-spec:
- selector:
- matchLabels:
- control-plane: sonataflow-operator
- replicas: 1
- template:
- metadata:
- annotations:
- kubectl.kubernetes.io/default-container: manager
- labels:
- control-plane: sonataflow-operator
- spec:
- securityContext:
- runAsNonRoot: true
- containers:
- - command:
- - /usr/local/bin/manager
- args:
- - --leader-elect
- - --v=2
- image: controller:latest
- name: manager
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- livenessProbe:
- httpGet:
- path: /healthz
- port: 8081
- initialDelaySeconds: 15
- periodSeconds: 20
- readinessProbe:
- httpGet:
- path: /readyz
- port: 8081
- initialDelaySeconds: 5
- periodSeconds: 10
- # More info:
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- resources:
- limits:
- cpu: 500m
- memory: 128Mi
- requests:
- cpu: 10m
- memory: 64Mi
- serviceAccountName: controller-manager
- terminationGracePeriodSeconds: 10
diff --git a/images/modules/org.kie.kogito.osl.builder.prod/install.sh
b/images/modules/org.kie.kogito.osl.builder.prod/install.sh
deleted file mode 100755
index 1f9c46e9..00000000
--- a/images/modules/org.kie.kogito.osl.builder.prod/install.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-# 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.
-set -e
-
-cd "$REMOTE_SOURCE_DIR"/app
-go build CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath
-ldflags=-buildid= -a -o manager main.go
-mkdir /workspace && cp "$REMOTE_SOURCE_DIR"/app/manager /workspace
\ No newline at end of file
diff --git a/images/modules/org.kie.kogito.osl.builder.prod/module.yaml
b/images/modules/org.kie.kogito.osl.builder.prod/module.yaml
deleted file mode 100644
index 9780126a..00000000
--- a/images/modules/org.kie.kogito.osl.builder.prod/module.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-name: org.kie.kogito.osl.builder.prod
-version: "1.30.0"
-description: Builds the operator binary
-
-envs:
- - name: "GOPRIVATE"
- value: ""
-
-execute:
- - script: install.sh
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]