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

Srvlogic 229 #18

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
e307041
Set OpenShift Serverless Logic operator images to version 1.32.0
rgdoliveira Feb 7, 2024
8bf564b
Merge pull request #6 from rgdoliveira/9.99.x-prod_132
rgdoliveira Feb 7, 2024
4c64626
[SRVLOGIC-213] - Downgrade Golang to 1.20 to accomodate internal buil…
ricardozanini Feb 7, 2024
cc7aac2
[9.99.x-prod] update bundle.osl files (#8)
rgdoliveira Feb 7, 2024
f0cf7e7
Update CSV for OSL 1.32
ricardozanini Feb 7, 2024
0127e52
Merge pull request #9 from ricardozanini/update-osl-1.32
ricardozanini Feb 9, 2024
930b3bc
osl-image-prod.yaml: fix operator name and change repository for cachito
rgdoliveira Feb 12, 2024
df08288
remove go.work files to be able to build using cachito
rgdoliveira Feb 12, 2024
0ccbed5
Merge pull request #10 from rgdoliveira/9.99.x-prod_operator_name
rgdoliveira Feb 12, 2024
da2f1bb
[9.99.x-prod][SRVLOGIC-219] - Update codebase to reflect OSL 1.32 ima…
ricardozanini Feb 13, 2024
9a5b3bd
Merge pull request #12 from rgdoliveira/9.99.x-prod_removegowork
rgdoliveira Feb 13, 2024
16eac5d
update cachito reference in osl-image-prod-yaml to the commit on top …
rgdoliveira Feb 13, 2024
8f12a3d
Merge pull request #14 from rgdoliveira/9.99.x-prod_cachitoref
rgdoliveira Feb 13, 2024
f1bb303
kie-kogito-serverless-operator-391: Pod instances keep spawning and t…
wmedvede Feb 9, 2024
eb3ccf9
Merge pull request #16 from wmedvede/9.99.x-prod-kie-kogito-serverles…
rgdoliveira Feb 19, 2024
165c705
SRVLOGIC-229: Workflow not registering to DataIndex if started simult…
wmedvede Feb 16, 2024
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 .github/workflows/check-container-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: 1.21
go-version: '1.20'
- name: Checkout code
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: 1.21
go-version: '1.20'
- name: Checkout code
uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- ".ci/jenkins/**"

env:
GO_VERSION: 1.21
GO_VERSION: '1.20'

jobs:
unit-tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- ".ci/jenkins/**"

env:
GO_VERSION: 1.21
GO_VERSION: '1.20'
KIND_VERSION: v0.20.0

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

# Build the manager binary
FROM docker.io/library/golang:1.21.6 as builder
FROM docker.io/library/golang:1.20.14 as builder

ARG SOURCE_DATE_EPOCH

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 2.0.0-snapshot
REDUCED_VERSION ?= latest
REDUCED_VERSION ?= 1.32.0

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand All @@ -30,7 +30,7 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
#
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
# kiegroup.org/kogito-serverless-operator-bundle:$VERSION and kiegroup.org/kogito-serverless-operator-catalog:$VERSION.
IMAGE_TAG_BASE ?= quay.io/kiegroup/kogito-serverless-operator-nightly
IMAGE_TAG_BASE ?= registry.redhat.io/openshift-serverless-1-tech-preview/logic-rhel8-operator

# BUNDLE_IMG defines the image:tag used for the bundle.
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.osl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 1.30.0
VERSION ?= 1.32.0

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand Down
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/apache/incubator-kie-kogito-serverless-operator/api

go 1.21
go 1.20

require (
github.com/serverlessworkflow/sdk-go/v2 v2.2.5
Expand Down
4 changes: 1 addition & 3 deletions bddframework/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/apache/incubator-kie-kogito-serverless-operator/bddframework

go 1.21

toolchain go1.21.6
go 1.20

// Internal dependencies
replace github.com/apache/incubator-kie-kogito-serverless-operator v0.0.0 => ../
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data:
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 \n# Copy from build
context to skeleton resources project\nCOPY --chmod=644 * ./resources/\n\nRUN
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
Expand Down
147 changes: 134 additions & 13 deletions bundle.osl/manifests/logic-operator-rhel8.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ metadata:
"timeout": "360s"
}
},
{
"apiVersion": "sonataflow.org/v1alpha08",
"kind": "SonataFlowClusterPlatform",
"metadata": {
"name": "sonataflow-clusterplatform"
},
"spec": {
"platformRef": {
"name": "sonataflow-platform",
"namespace": "sonataflow-operator-system"
}
}
},
{
"apiVersion": "sonataflow.org/v1alpha08",
"kind": "SonataFlowPlatform",
Expand All @@ -106,14 +119,16 @@ metadata:
]
capabilities: Basic Install
categories: Application Runtime
description: OpenShift Serverless Logic Kubernetes Operator for deploying workflow applications based on the CNCF Serverless Workflow specification
description: OpenShift Serverless Logic Operator for deploying workflow applications based on the CNCF Serverless Workflow specification
operators.openshift.io/valid-subscription: '["OpenShift Container Platform", "OpenShift Platform Plus"]'
operators.operatorframework.io/builder: operator-sdk-v1.25.0
operators.operatorframework.io/internal-objects: '["sonataflowbuilds.sonataflow.org"]'
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/apache/incubator-kie-kogito-serverless-operator
operatorframework.io/suggested-namespace: "openshift-serverless-logic"
certified: "false"
repository: https://github.com/kiegroup/kogito-serverless-operator/
support: Red Hat
name: logic-operator-rhel8.v1.30.0
name: logic-operator-rhel8.v1.32.0
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -157,6 +172,22 @@ spec:
displayName: InnerBuild
path: innerBuild
version: v1alpha08
- description: SonataFlowClusterPlatform is the Schema for the sonataflowclusterplatforms API
displayName: Sonata Flow Cluster Platform
kind: SonataFlowClusterPlatform
name: sonataflowclusterplatforms.sonataflow.org
specDescriptors:
- description: Name of the SonataFlowPlatform
displayName: Platform_Name
path: platformRef.name
- description: Namespace of the SonataFlowPlatform
displayName: Platform_NS
path: platformRef.namespace
statusDescriptors:
- description: Version the operator version controlling this ClusterPlatform
displayName: version
path: version
version: v1alpha08
- description: SonataFlowPlatform is the descriptor for the workflow platform infrastructure.
displayName: Sonata Flow Platform
kind: SonataFlowPlatform
Expand Down Expand Up @@ -187,6 +218,12 @@ spec:
- description: DevMode Attributes for running workflows in devmode (immutable, no build required)
displayName: DevMode
path: devMode
- description: PodTemplate describes the deployment details of this platform service instance.
displayName: podTemplate
path: services.dataIndex.podTemplate
- description: PodTemplate describes the deployment details of this platform service instance.
displayName: podTemplate
path: services.jobService.podTemplate
statusDescriptors:
- description: Cluster what kind of cluster you're running (ie, plain Kubernetes or OpenShift)
displayName: cluster
Expand Down Expand Up @@ -243,11 +280,14 @@ spec:
version: v1alpha08
description: |-
OpenShift Serverless Logic Kubernetes Operator for deploying workflow applications
based on the [CNCF Serverless Workflow specification](https://serverlessworkflow.io/):

* Deploy workflow applications using the [dev profile](https://sonataflow.org/serverlessworkflow/latest/cloud/operator/developing-workflows.html), suited for the your development cycle
* Build workflow applications based on the platform you're currently working on.
displayName: SonataFlow Operator
based on the [CNCF Serverless Workflow specification](https://serverlessworkflow.io/) to deploy workflow applications
[suited for the your development cycle](https://openshift-knative.github.io/docs/docs/latest/serverless-logic/cloud/operator/developing-workflows.html).

Please follow our [documentation for more information about the OpenShift Serverless Logic Operator Tech Preview](https://openshift-knative.github.io/docs/docs/latest/serverless-logic/about.html).
displayName: OpenShift Serverless Logic Operator
icon:
- base64data: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzOCIgaGVpZ2h0PSIzOCIgdmlld0JveD0iMCAwIDM4IDM4Ij48ZGVmcz48c3R5bGU+LmF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yNTIuNjI1MiwwLDAsMSwuNjI1LS42MjVoNGEuNjI1Mi42MjUyLDAsMCwxLC42MjUuNjI1djRBLjYyNTMuNjI1MywwLDAsMSwxNy41LDE2LjQ3NjZabS0zLjM3NS0xLjI1aDIuNzV2LTIuNzVoLTIuNzVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yNC41LDE2LjQ3NjZoLTRhLjYyNTMuNjI1MywwLDAsMS0uNjI1LS42MjV2LTRhLjYyNTIuNjI1MiwwLDAsMSwuNjI1LS42MjVoNGEuNjI1Mi42MjUyLDAsMCwxLC42MjUuNjI1djRBLjYyNTMuNjI1MywwLDAsMSwyNC41LDE2LjQ3NjZabS0zLjM3NS0xLjI1aDIuNzV2LTIuNzVoLTIuNzVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yOCwyMy40NzY2SDI0YS42MjUzLjYyNTMsMCwwLDEtLjYyNS0uNjI1di00YS42MjUyLjYyNTIsMCwwLDEsLjYyNS0uNjI1aDRhLjYyNTIuNjI1MiwwLDAsMSwuNjI1LjYyNXY0QS42MjUzLjYyNTMsMCwwLDEsMjgsMjMuNDc2NlptLTMuMzc1LTEuMjVoMi43NXYtMi43NWgtMi43NVoiLz48cGF0aCBkPSJNMjksMjYuNDc2Nkg5YS42MjUuNjI1LDAsMCwxLDAtMS4yNUgyOWEuNjI1LjYyNSwwLDAsMSwwLDEuMjVaIi8+PC9zdmc+
mediatype: image/svg+xml
install:
spec:
clusterPermissions:
Expand Down Expand Up @@ -353,6 +393,32 @@ spec:
- get
- patch
- update
- apiGroups:
- sonataflow.org
resources:
- sonataflowclusterplatforms
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- sonataflow.org
resources:
- sonataflowclusterplatforms/finalizers
verbs:
- update
- apiGroups:
- sonataflow.org
resources:
- sonataflowclusterplatforms/status
verbs:
- get
- patch
- update
- apiGroups:
- sonataflow.org
resources:
Expand Down Expand Up @@ -507,6 +573,58 @@ spec:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- apps
resources:
- statefulset
- statefulsets
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- ingress
- ingresses
verbs:
- get
- list
- watch
- apiGroups:
- serving.knative.dev
resources:
- service
- services
verbs:
- get
- list
- watch
- apiGroups:
- eventing.knative.dev
resources:
- broker
- brokers
verbs:
- get
- list
- watch
- apiGroups:
- apps.openshift.io
resources:
- deploymentconfigs
verbs:
- get
- list
- watch
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- get
- list
- watch
serviceAccountName: logic-operator-rhel8-controller-manager
deployments:
- label:
Expand Down Expand Up @@ -560,7 +678,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: registry.redhat.io/openshift-serverless-1-tech-preview/logic-operator-rhel8@sha256:24c2e62bff1f2f7e5579b990e44206ac019bd00f5ca546b069471fc1af34ed75
image: registry.redhat.io/openshift-serverless-1-tech-preview/logic-rhel8-operator@sha256:33653cf4c48121a7a0d1e109c3fe93b8050f9deb80b6bb00425b62c77917a9ad
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -639,9 +757,12 @@ spec:
- cncf
- serverless
- serverlessworkflow
- workflows
links:
- name: Product Page
url: https://sonataflow.org/serverlessworkflow/latest/index.html
- name: Documentation
url: https://openshift-knative.github.io/docs/docs/latest/serverless-logic/about.html
- name: Source Repository
url: https://github.com/kiegroup/kogito-serverless-operator/
maintainers:
- email: [email protected]
name: Red Hat
Expand All @@ -652,6 +773,6 @@ spec:
relatedImages:
- image: registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:4564ca3dc5bac80d6faddaf94c817fbbc270698a9399d8a21ee1005d85ceda56
name: kube-rbac-proxy
- image: registry.redhat.io/openshift-serverless-1-tech-preview/logic-operator-rhel8@sha256:24c2e62bff1f2f7e5579b990e44206ac019bd00f5ca546b069471fc1af34ed75
- image: registry.redhat.io/openshift-serverless-1-tech-preview/logic-rhel8-operator@sha256:33653cf4c48121a7a0d1e109c3fe93b8050f9deb80b6bb00425b62c77917a9ad
name: manager
version: 1.30.0
version: 1.32.0
Loading
Loading