Skip to content

Commit

Permalink
Merge branch 'master' into vmWebhookUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivnathan authored Nov 25, 2024
2 parents 5467bf2 + 6162287 commit 0caee64
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 152 deletions.
94 changes: 0 additions & 94 deletions scripts/ci/collect-logs.sh

This file was deleted.

11 changes: 1 addition & 10 deletions scripts/ci/manage-host-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,7 @@ else
set -e
fi

MANAGE_OPERATOR_FILE=scripts/ci/manage-operator.sh
OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION:-codeready-toolchain/toolchain-cicd/master}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT_NAME=$(basename ${MANAGE_OPERATOR_FILE})

if [[ -f ${SCRIPT_DIR}/${SCRIPT_NAME} ]]; then
source ${SCRIPT_DIR}/${SCRIPT_NAME}
else
source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/${OWNER_AND_BRANCH_LOCATION}/${MANAGE_OPERATOR_FILE})"
fi
source scripts/ci/manage-operator.sh

if [[ -n "${CI}${REG_REPO_PATH}${HOST_REPO_PATH}" ]] && [[ $(echo ${REPO_NAME} | sed 's/"//g') != "release" ]]; then
REPOSITORY_NAME=registration-service
Expand Down
11 changes: 1 addition & 10 deletions scripts/ci/manage-member-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,7 @@ else
set -e
fi

MANAGE_OPERATOR_FILE=scripts/ci/manage-operator.sh
OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION:-codeready-toolchain/toolchain-cicd/master}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT_NAME=$(basename ${MANAGE_OPERATOR_FILE})

if [[ -f ${SCRIPT_DIR}/${SCRIPT_NAME} ]]; then
source ${SCRIPT_DIR}/${SCRIPT_NAME}
else
source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/${OWNER_AND_BRANCH_LOCATION}/${MANAGE_OPERATOR_FILE})"
fi
source scripts/ci/manage-operator.sh

if [[ -n "${CI}${MEMBER_REPO_PATH}" ]] && [[ $(echo ${REPO_NAME} | sed 's/"//g') != "release" ]]; then
REPOSITORY_NAME=member-operator
Expand Down
31 changes: 2 additions & 29 deletions scripts/ci/manage-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ else
fi

WAS_ALREADY_PAIRED_FILE=/tmp/toolchain_e2e_already_paired
OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION:-codeready-toolchain/toolchain-cicd/master}

get_repo() {
PAIRED=false
Expand Down Expand Up @@ -204,8 +203,7 @@ install_operator() {
sleep 1
done
fi

# start_collecting_logs


CATALOG_SOURCE_OBJECT="
apiVersion: operators.coreos.com/v1alpha1
Expand Down Expand Up @@ -272,32 +270,7 @@ EOF
wait_until_is_installed
}


start_collecting_logs() {
COLLECT_LOGS=scripts/ci/collect-logs.sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT_NAME=$(basename ${COLLECT_LOGS})

if [[ -f ${SCRIPT_DIR}/${SCRIPT_NAME} ]]; then
${SCRIPT_DIR}/${SCRIPT_NAME} -n ${NAMESPACE} &
${SCRIPT_DIR}/${SCRIPT_NAME} -n "openshift-operator-lifecycle-manager" &
else
SCRIPT_NAME=$(basename ${COLLECT_LOGS})
curl -sSL https://raw.githubusercontent.com/${OWNER_AND_BRANCH_LOCATION}/${COLLECT_LOGS} > /tmp/${SCRIPT_NAME} && chmod +x /tmp/${SCRIPT_NAME}
OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION} /tmp/${SCRIPT_NAME} -n ${NAMESPACE} &
OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION} /tmp/${SCRIPT_NAME} -n "openshift-operator-lifecycle-manager" &
fi
}

wait_until_is_installed() {
WAIT_UNTIL_IS_INSTALLED=scripts/ci/wait-until-is-installed.sh
PARAMS="-crd ${EXPECT_CRD} -cs ${CATALOGSOURCE_NAME} -n ${NAMESPACE} -s ${SUBSCRIPTION_NAME}"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT_NAME=$(basename ${WAIT_UNTIL_IS_INSTALLED})

if [[ -f ${SCRIPT_DIR}/${SCRIPT_NAME} ]]; then
${SCRIPT_DIR}/${SCRIPT_NAME} ${PARAMS}
else
curl -sSL https://raw.githubusercontent.com/${OWNER_AND_BRANCH_LOCATION}/${WAIT_UNTIL_IS_INSTALLED} > /tmp/${SCRIPT_NAME} && chmod +x /tmp/${SCRIPT_NAME} && OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION} /tmp/${SCRIPT_NAME} ${PARAMS}
fi
scripts/ci/wait-until-is-installed.sh ${PARAMS}
}
10 changes: 1 addition & 9 deletions scripts/ci/setup-dev-sso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,8 @@ check_command()
}

run_wait_until_is_installed() {
WAIT_UNTIL_IS_INSTALLED=scripts/ci/wait-until-is-installed.sh
PARAMS="-crd keycloak.org -cs '' -n ${DEV_SSO_NS} -s ${SUBSCRIPTION_NAME}"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT_NAME=$(basename ${WAIT_UNTIL_IS_INSTALLED})

if [[ -f ${SCRIPT_DIR}/${SCRIPT_NAME} ]]; then
${SCRIPT_DIR}/${SCRIPT_NAME} ${PARAMS}
else
curl -sSL https://raw.githubusercontent.com/${OWNER_AND_BRANCH_LOCATION}/${WAIT_UNTIL_IS_INSTALLED} > /tmp/${SCRIPT_NAME} && chmod +x /tmp/${SCRIPT_NAME} && OWNER_AND_BRANCH_LOCATION=${OWNER_AND_BRANCH_LOCATION} /tmp/${SCRIPT_NAME} ${PARAMS}
fi
scripts/ci/wait-until-is-installed.sh ${PARAMS}
}

setup_oauth_generic()
Expand Down

0 comments on commit 0caee64

Please sign in to comment.