Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for providing preferred cluster #46

Merged
merged 3 commits into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export BONFIRE_NS_REQUESTER="${JOB_NAME}-${BUILD_NUMBER}"
# which branch to fetch cicd scripts from in bonfire repo
export BONFIRE_REPO_BRANCH="${BONFIRE_REPO_BRANCH:-main}"
export BONFIRE_REPO_ORG="${BONFIRE_REPO_ORG:-RedHatInsights}"
SUPPORTED_CLUSTERS=('crcd' 'ephemeral')
if [[ -z "${AVAILABLE_CLUSTERS[*]}" ]]; then
AVAILABLE_CLUSTERS=("${SUPPORTED_CLUSTERS[@]}")
fi

set -x
# Set up docker cfg
Expand Down Expand Up @@ -83,7 +87,7 @@ try_login_openshift_cluster() {

success=1

for cluster_id in crcd ephemeral ; do
for cluster_id in "${AVAILABLE_CLUSTERS[@]}"; do

cluster_url=''
cluster_token=''
Expand Down