Skip to content

Commit

Permalink
Sbo nightly test (redhat-developer#5946)
Browse files Browse the repository at this point in the history
* run nightly sbo(master) tests against odo main

Signed-off-by: anandrkskd <[email protected]>

* run nightly sbo(master) tests against odo main

Signed-off-by: anandrkskd <[email protected]>

* remove startingCSV derective

Signed-off-by: anandrkskd <[email protected]>
  • Loading branch information
anandrkskd authored and cdrage committed Aug 31, 2022
1 parent 0759c35 commit a61e09e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
37 changes: 36 additions & 1 deletion scripts/configure-cluster/common/setup-operators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,42 @@ install_service_binding_operator() {
EOF
}

if [ "$KUBERNETES" == "true" ]; then
install_service_binding_operator_master() {
oc create -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: service-binding-master
namespace: openshift-marketplace
spec:
displayName: Service Binding Operator build from master
image: quay.io/redhat-developer/servicebinding-operator:index
priority: 500
publisher: Red Hat
sourceType: grpc
updateStrategy:
registryPoll:
interval: 10m0s
EOF
oc create -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: service-binding-operator
namespace: openshift-operators
spec:
channel: candidate
installPlanApproval: Automatic
name: service-binding-operator
source: service-binding-master
sourceNamespace: openshift-marketplace
EOF
}

if [ "$NIGHTLY" == "true" ]; then
install_postgres_operator oc openshift-operators certified-operators openshift-marketplace
install_service_binding_operator_master
elif [ "$KUBERNETES" == "true" ]; then
# install "cloud-native-postgresql" using "kubectl" in "operators" namespace; use "operatorhubio-catalog" catalog source from "olm" namespace
install_postgres_operator kubectl operators operatorhubio-catalog olm

Expand Down
4 changes: 2 additions & 2 deletions scripts/openshiftci-Nightly-SBO-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ oc login -u developer -p password@123
oc whoami

# Operatorhub integration tests
make test-operator-hub

make test-integration
make test-e2e

oc logout

0 comments on commit a61e09e

Please sign in to comment.