From ee0413035f91c8192f9bf791695a3ad30ed35355 Mon Sep 17 00:00:00 2001 From: Subhash Khileri Date: Mon, 28 Oct 2024 15:27:24 +0530 Subject: [PATCH] OSD GCP setup --- .ibm/pipelines/openshift-ci-tests.sh | 22 +++--------- .ibm/pipelines/utils.sh | 50 +++++++++++++++++++--------- 2 files changed, 40 insertions(+), 32 deletions(-) diff --git a/.ibm/pipelines/openshift-ci-tests.sh b/.ibm/pipelines/openshift-ci-tests.sh index 0bc2164f9d..73feb1e99b 100755 --- a/.ibm/pipelines/openshift-ci-tests.sh +++ b/.ibm/pipelines/openshift-ci-tests.sh @@ -247,24 +247,14 @@ check_backstage_running() { return 1 } -install_pipelines_operator() { - local dir=$1 - DISPLAY_NAME="Red Hat OpenShift Pipelines" - - if oc get csv -n "openshift-operators" | grep -q "${DISPLAY_NAME}"; then - echo "Red Hat OpenShift Pipelines operator is already installed." - else - echo "Red Hat OpenShift Pipelines operator is not installed. Installing..." - oc apply -f "${dir}/resources/pipeline-run/pipelines-operator.yaml" - fi - wait_for_deployment "openshift-operators" "pipelines" -} - initiate_deployments() { - add_helm_repos - configure_namespace "${NAME_SPACE}" + install_pipelines_operator "${DIR}" + install_crunchy_postgres_operator install_helm + add_helm_repos + + configure_namespace "${NAME_SPACE}" uninstall_helmchart "${NAME_SPACE}" "${RELEASE_NAME}" # Deploy redis cache db. @@ -279,8 +269,6 @@ initiate_deployments() { configure_namespace "${NAME_SPACE_RBAC}" configure_external_postgres_db "${NAME_SPACE_RBAC}" - - install_pipelines_operator "${DIR}" uninstall_helmchart "${NAME_SPACE_RBAC}" "${RELEASE_NAME_RBAC}" apply_yaml_files "${DIR}" "${NAME_SPACE_RBAC}" echo "Deploying image from repository: ${QUAY_REPO}, TAG_NAME: ${TAG_NAME}, in NAME_SPACE : ${RELEASE_NAME_RBAC}" diff --git a/.ibm/pipelines/utils.sh b/.ibm/pipelines/utils.sh index 2dd0953d38..193af76a48 100755 --- a/.ibm/pipelines/utils.sh +++ b/.ibm/pipelines/utils.sh @@ -139,18 +139,38 @@ wait_for_deployment() { return 1 } -# install_pipelines_operator() { -# oc apply -f - <