mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Sbo nightly test (#5946)
* run nightly sbo(master) tests against odo main Signed-off-by: anandrkskd <anandrkskd@gmail.com> * run nightly sbo(master) tests against odo main Signed-off-by: anandrkskd <anandrkskd@gmail.com> * remove startingCSV derective Signed-off-by: anandrkskd <anandrkskd@gmail.com>
This commit is contained in:
committed by
GitHub
parent
96ce4e59d0
commit
379b37f751
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user