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

Commit

Permalink
[KOGITO-1386] Adjustments for 0.8.0 release (#205)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <[email protected]>
  • Loading branch information
ricardozanini authored Mar 12, 2020
1 parent 9a62bc7 commit b033028
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 25 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
# 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"
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}

0 comments on commit b033028

Please sign in to comment.