Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

[KOGITO-1396] Adjustments for 0.8.0 release #205

Merged
merged 1 commit into from Mar 12, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -124,4 +124,8 @@ prepare-olm:
old_version = ""
new_version = ""
bump-version:
./hack/bump-version.sh $(old_version) $(new_version)
./hack/bump-version.sh $(old_version) $(new_version)

.PHONY: scorecard
scorecard:
./hack/scorecard.sh
9 changes: 4 additions & 5 deletions deploy/crds/app.kiegroup.org_v1alpha1_kogitodataindex_cr.yaml
Expand Up @@ -9,16 +9,16 @@ spec:
replicas: 1
# image to use for this deploy
image:
tag: "0.7.0"
tag: "0.8.0"
# httpPort: 8080
# details about the kafka connection
kafka:
# let's leave this burden to KogitoInfra CR to deploy a new Kafka instance for us
useKogitoInfra: true
useKogitoInfra: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you switch to false here ?
dataindex will need kafka and infinispan or ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the CI on OperatorHub. Since they don't implement the dependency management there, the Data Index will fail to deploy and will fail the PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oki

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I'll work on this for the next version. The Operator will handle with this kind of failures and will have a nice status message.

# details about the connected infinispan
infinispan:
# let's leave this burden to KogitoInfra CR to deploy a new Infinispan instance for us
useKogitoInfra: true
useKogitoInfra: false
# name of the auth realm. "default" is the realm name for
#authRealm: ""
# default to PLAIN
Expand All @@ -34,5 +34,4 @@ spec:
# username key defined in the secret to read from
#usernameKey: ""
# password key defined in the secret
#passwordKey: ""
status: {}
#passwordKey: ""
2 changes: 1 addition & 1 deletion deploy/examples/data-index.yaml
Expand Up @@ -11,7 +11,7 @@ spec:
replicas: 1
# image to use for this deploy
image:
tag: "0.7.0"
tag: "0.8.0"
# the http port that the dataindex image will listen internally
#httpPort: 9090
# Limits and requests for the Data Index pod
Expand Down
8 changes: 4 additions & 4 deletions deploy/examples/example-custom-build-images.yaml
Expand Up @@ -11,10 +11,10 @@ spec:
gitSource:
contextDir: jbpm-quarkus-example
uri: 'https://github.com/kiegroup/kogito-examples'
reference: 0.7.0
reference: 0.8.0
# images that don't have a custom tag, will use this version
imageVersion: 0.7.0
# the image runtime build will use this image
imageRuntimeTag: quay.io/ricardozanini/kogito-quarkus-jvm-ubi8:0.7.0-rc1
imageVersion: 0.8.0
# the image runtime build will use this image (a pretty different namespace)
imageRuntimeTag: quay.io/customnamespace/kogito-quarkus-jvm-ubi8:0.8.0
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
4 changes: 2 additions & 2 deletions deploy/examples/jbpm-quarkus-example-persistence.yaml
Expand Up @@ -11,7 +11,7 @@ spec:
gitSource:
contextDir: jbpm-quarkus-example
uri: 'https://github.com/kiegroup/kogito-examples'
reference: 0.7.0
imageVersion: 0.7.0
reference: 0.8.0
imageVersion: 0.8.0
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
2 changes: 1 addition & 1 deletion deploy/examples/jbpm-quarkus-example.yaml
Expand Up @@ -11,6 +11,6 @@ spec:
gitSource:
contextDir: jbpm-quarkus-example
uri: 'https://github.com/kiegroup/kogito-examples'
imageVersion: 0.7.0
imageVersion: 0.8.0
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
4 changes: 2 additions & 2 deletions deploy/examples/kogito-kafka-quickstart-quarkus.yaml
Expand Up @@ -13,9 +13,9 @@ spec:
- name: ARTIFACT_DIR
value: kogito-kafka-quickstart-quarkus/target
gitSource:
reference: 0.7.0
reference: 0.8.0
uri: https://github.com/kiegroup/kogito-quickstarts
imageVersion: 0.7.0
imageVersion: 0.8.0
resources: {}
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
Expand Down
6 changes: 3 additions & 3 deletions deploy/examples/onboarding-example.yaml
Expand Up @@ -7,7 +7,7 @@ spec:
gitSource:
uri: https://github.com/kiegroup/kogito-examples
contextDir: onboarding-example/onboarding
imageVersion: 0.7.0
imageVersion: 0.8.0
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
service:
Expand All @@ -27,7 +27,7 @@ spec:
gitSource:
uri: https://github.com/kiegroup/kogito-examples
contextDir: onboarding-example/hr
imageVersion: 0.7.0
imageVersion: 0.8.0
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
service:
Expand All @@ -46,7 +46,7 @@ spec:
gitSource:
uri: https://github.com/kiegroup/kogito-examples
contextDir: onboarding-example/payroll
imageVersion: 0.7.0
imageVersion: 0.8.0
# set your maven nexus repository
#mavenMirrorURL: http://nexus3-nexus.apps-crc.testing/repository/maven-public/
service:
Expand Down
Expand Up @@ -28,17 +28,16 @@ metadata:
},
"spec": {
"image": {
"tag": "0.7.0"
"tag": "0.8.0"
},
"infinispan": {
"useKogitoInfra": true
"useKogitoInfra": false
},
"kafka": {
"useKogitoInfra": true
"useKogitoInfra": false
},
"replicas": 1
},
"status": {}
}
},
{
"apiVersion": "app.kiegroup.org/v1alpha1",
Expand Down
@@ -1,7 +1,7 @@
channels:
- currentCSV: kogito-operator.v0.8.0
name: alpha
- currentCSV: kogito-operator.v0.7.0
- currentCSV: kogito-operator.v0.8.0
name: dev-preview
defaultChannel: alpha
packageName: kogito-operator
42 changes: 42 additions & 0 deletions hack/scorecard.sh
@@ -0,0 +1,42 @@
#!/bin/bash
# Copyright 2020 Red Hat, Inc. and/or its affiliates
#
# Licensed 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.

echo "Cleaning up CRDs to run the scorecard tool"
for crd in deploy/crds/*_crd.yaml; do
[[ -e "$crd" ]] || break
oc delete -f "$crd"
ricardozanini marked this conversation as resolved.
Show resolved Hide resolved
done

echo "Creating namespace for Scorecard"
oc create namespace scorecard
oc project scorecard

echo "Running scorecard"
operator-sdk scorecard
exit_code=$?

echo "Scorecard finished with code ${exit_code}"

echo "Cleaning up before leaving"
oc delete namespace scorecard

echo "Reappling CRDs"
for crd in deploy/crds/*_crd.yaml; do
[[ -e "$crd" ]] || break
oc apply -f "$crd"
done

echo "Bye"
exit ${exit_code}