diff --git a/Makefile b/Makefile index 5222e3796..858a36aa9 100644 --- a/Makefile +++ b/Makefile @@ -124,4 +124,8 @@ prepare-olm: old_version = "" new_version = "" bump-version: - ./hack/bump-version.sh $(old_version) $(new_version) \ No newline at end of file + ./hack/bump-version.sh $(old_version) $(new_version) + +.PHONY: scorecard +scorecard: + ./hack/scorecard.sh diff --git a/deploy/crds/app.kiegroup.org_v1alpha1_kogitodataindex_cr.yaml b/deploy/crds/app.kiegroup.org_v1alpha1_kogitodataindex_cr.yaml index dd334854a..16f6ff7d6 100644 --- a/deploy/crds/app.kiegroup.org_v1alpha1_kogitodataindex_cr.yaml +++ b/deploy/crds/app.kiegroup.org_v1alpha1_kogitodataindex_cr.yaml @@ -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 @@ -34,5 +34,4 @@ spec: # username key defined in the secret to read from #usernameKey: "" # password key defined in the secret - #passwordKey: "" -status: {} \ No newline at end of file + #passwordKey: "" \ No newline at end of file diff --git a/deploy/examples/data-index.yaml b/deploy/examples/data-index.yaml index bca2571dd..359289103 100644 --- a/deploy/examples/data-index.yaml +++ b/deploy/examples/data-index.yaml @@ -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 diff --git a/deploy/examples/example-custom-build-images.yaml b/deploy/examples/example-custom-build-images.yaml index 8cbc784f4..c23b115e6 100644 --- a/deploy/examples/example-custom-build-images.yaml +++ b/deploy/examples/example-custom-build-images.yaml @@ -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/ diff --git a/deploy/examples/jbpm-quarkus-example-persistence.yaml b/deploy/examples/jbpm-quarkus-example-persistence.yaml index 8cf1c5476..c8ddfe036 100644 --- a/deploy/examples/jbpm-quarkus-example-persistence.yaml +++ b/deploy/examples/jbpm-quarkus-example-persistence.yaml @@ -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/ \ No newline at end of file diff --git a/deploy/examples/jbpm-quarkus-example.yaml b/deploy/examples/jbpm-quarkus-example.yaml index a1d92876a..2f09cffb7 100644 --- a/deploy/examples/jbpm-quarkus-example.yaml +++ b/deploy/examples/jbpm-quarkus-example.yaml @@ -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/ \ No newline at end of file diff --git a/deploy/examples/kogito-kafka-quickstart-quarkus.yaml b/deploy/examples/kogito-kafka-quickstart-quarkus.yaml index ac7c62d75..ab03c3ccb 100644 --- a/deploy/examples/kogito-kafka-quickstart-quarkus.yaml +++ b/deploy/examples/kogito-kafka-quickstart-quarkus.yaml @@ -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/ diff --git a/deploy/examples/onboarding-example.yaml b/deploy/examples/onboarding-example.yaml index 711c9eaa4..fb98bbb55 100644 --- a/deploy/examples/onboarding-example.yaml +++ b/deploy/examples/onboarding-example.yaml @@ -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: @@ -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: @@ -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: diff --git a/deploy/olm-catalog/kogito-operator/0.8.0/kogito-operator.v0.8.0.clusterserviceversion.yaml b/deploy/olm-catalog/kogito-operator/0.8.0/kogito-operator.v0.8.0.clusterserviceversion.yaml index 91d82b401..6f7c38a22 100644 --- a/deploy/olm-catalog/kogito-operator/0.8.0/kogito-operator.v0.8.0.clusterserviceversion.yaml +++ b/deploy/olm-catalog/kogito-operator/0.8.0/kogito-operator.v0.8.0.clusterserviceversion.yaml @@ -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", diff --git a/deploy/olm-catalog/kogito-operator/kogito-operator.package.yaml b/deploy/olm-catalog/kogito-operator/kogito-operator.package.yaml index fb78f0631..4624da870 100644 --- a/deploy/olm-catalog/kogito-operator/kogito-operator.package.yaml +++ b/deploy/olm-catalog/kogito-operator/kogito-operator.package.yaml @@ -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 diff --git a/hack/scorecard.sh b/hack/scorecard.sh new file mode 100755 index 000000000..c0741e6e9 --- /dev/null +++ b/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" +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}