From 78232a96876adce17da487f5e8c316a5b2ac42ba Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Thu, 28 Sep 2023 14:56:33 +0200 Subject: [PATCH] Do not force the project to use (#160) Signed-off-by: Sergio Arroutbi --- tools/index_tools/tang_install_catalog.sh | 30 +++++++++-------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/tools/index_tools/tang_install_catalog.sh b/tools/index_tools/tang_install_catalog.sh index 23ceec29..7e90cc3f 100755 --- a/tools/index_tools/tang_install_catalog.sh +++ b/tools/index_tools/tang_install_catalog.sh @@ -37,9 +37,6 @@ do esac done -echo "-------------------------------------" -echo "oc project openshift-operators" -oc project openshift-operators echo "-------------------------------------" echo "oc status" oc status @@ -47,8 +44,8 @@ if [ -z "${list_only}" ]; then sleep 1 echo "-------------------------------------" - echo "oc create -f tang_catalog_source.yaml" - oc create -f tang_catalog_source.yaml + echo "oc create -f tang_catalog_source.yaml -n openshift-operators" + oc create -f tang_catalog_source.yaml -n openshift-operators fi echo "-------------------------------------" sleep 1 @@ -62,20 +59,17 @@ if [ -z "${list_only}" ]; then echo "-------------------------------------" sleep 1 - echo "oc create -f tang_subscription.yaml" - oc create -f tang_subscription.yaml + echo "oc create -f tang_subscription.yaml -n openshift-operators" + oc create -f tang_subscription.yaml -n openshift-operators fi echo "-------------------------------------" -echo "oc project" -oc project -echo "-------------------------------------" sleep 1 -echo "oc get sub" -oc get sub +echo "oc get sub -n openshift-operators" +oc get sub -n openshift-operators echo "-------------------------------------" sleep 1 -echo "oc get ip" -oc get ip +echo "oc get ip -n openshift-operators" +oc get ip -n openshift-operators echo "-------------------------------------" sleep 1 echo "oc get jobs -nopenshift-marketplace" @@ -86,11 +80,11 @@ echo "oc get pods -nopenshift-marketplace" oc get pods -nopenshift-marketplace echo "-------------------------------------" sleep 1 -echo "oc get csv" -oc get csv +echo "oc get csv -n openshift-operators" +oc get csv -n openshift-operators echo "-------------------------------------" sleep 1 -echo "oc get pods" -oc get pods +echo "oc get pods -n openshift-operators" +oc get pods -n openshift-operators echo "-------------------------------------" sleep 1