mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Adds support for linking using service binding without the service binding operator (#4905)
* Adds support for linking using service binding without the service binding operator * Uses isLinkResource() to detect the service binding resources * Updates the success message for operator based links * Updates the flow to creating the deployment first * Adds annotations to the Redis CR in devfile-with-link.yaml file * Updates the flow to create only the services before the deployment. It also separates the push related code for link and service creation. * Moves the for loop in setLinksServiceNames() inside the if condition * Adds and returns a error message when the pipeline throws a forbidden type of error * Moves the updation of services and pvcs with owner references before attempting creation of links
This commit is contained in:
@@ -32,15 +32,12 @@ EOF
|
||||
}
|
||||
|
||||
if [ $KUBERNETES == "true" ]; then
|
||||
# install "redis-oprator" using "kubectl" in "operators" namespace; use "operatorhubio-catalog" catalog soure from "olm" namespace
|
||||
# install "redis-oprator" using "kubectl" in "operators" namespace; use "operatorhubio-catalog" catalog source from "olm" namespace
|
||||
install_redis_operator kubectl operators operatorhubio-catalog olm
|
||||
|
||||
# install "service-binding-operator" using "kubectl" in "operators" namespace; use "operatorhubio-catalog" catalog soure from "olm" namespace
|
||||
install_service_binding_operator kubectl operators service-binding-operator operatorhubio-catalog olm
|
||||
else
|
||||
# install "redis-oprator" using "oc" in "openshift-operators" namespace; use "community-operators" catalog soure from "openshift-marketplace" namespace
|
||||
# install "redis-oprator" using "oc" in "openshift-operators" namespace; use "community-operators" catalog source from "openshift-marketplace" namespace
|
||||
install_redis_operator oc openshift-operators community-operators openshift-marketplace
|
||||
|
||||
# install "service-binding-operator" using "oc" in "openshift-operators" namespace; use "redhat-operators" catalog soure from "openshift-marketplace" namespace
|
||||
# install "service-binding-operator" using "oc" in "openshift-operators" namespace; use "redhat-operators" catalog source from "openshift-marketplace" namespace
|
||||
install_service_binding_operator oc openshift-operators rh-service-binding-operator redhat-operators openshift-marketplace
|
||||
fi
|
||||
Reference in New Issue
Block a user