Skip to content

Commit

Permalink
Merge branch 'main' into e2e_kind_3
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <[email protected]>
  • Loading branch information
coleenquadros committed Apr 24, 2024
2 parents b291cee + b7578a6 commit c9bc0e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 0 additions & 1 deletion cicd-scripts/customize-mco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ SED_COMMAND=${SED}' -i-e -e'
source ./scripts/test-utils.sh
LATEST_SNAPSHOT=${LATEST_SNAPSHOT:-$(get_latest_snapshot)}

# need to add this annotation due to KinD cluster resources are insufficient
if [[ -n ${IS_KIND_ENV} ]]; then
source ./tests/run-in-kind/env.sh
fi
Expand Down
17 changes: 17 additions & 0 deletions scripts/test-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
# Copyright (c) 2024 Red Hat, Inc.
# Copyright Contributors to the Open Cluster Management project

VERSION="2.11.0"

# Use the PR mirror image for PRs against main branch.
get_pr_image() {
BRANCH=""
LATEST_SNAPSHOT=""

if [[ ${PULL_BASE_REF} == "main" ]]; then
LATEST_SNAPSHOT="${VERSION}-PR${PULL_NUMBER}-${PULL_PULL_SHA}"
fi

# trim the leading and tailing quotes
LATEST_SNAPSHOT="${LATEST_SNAPSHOT#\"}"
LATEST_SNAPSHOT="${LATEST_SNAPSHOT%\"}"
echo ${LATEST_SNAPSHOT}
}

# Use snapshot for target release.
VERSION="2.11.0"

Expand Down

0 comments on commit c9bc0e0

Please sign in to comment.