-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scripts: Add function to install KinD Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * make: Add target for e2e test tools Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * ci: Remove duplicate dep checks from script Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * make: Add bin dir to install deps Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * ci: Remove PATH overwrite and add tmp generated bin dir to git ignore Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * ci: Ensure required bins are copied to ec2-user Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * ci: Fetch LATEST_SNAPSHOT and inject into prow env Signed-off-by: Philip Gough <philip.p.gough@gmail.com> --------- Signed-off-by: Philip Gough <philip.p.gough@gmail.com> Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
- Loading branch information
1 parent
15b6b98
commit fa5fe12
Showing
8 changed files
with
66 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,3 +97,4 @@ results.xml | |
|
||
# build/tests artifacts | ||
registration-operator | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024 Red Hat, Inc. | ||
# Copyright Contributors to the Open Cluster Management project | ||
|
||
# Use snapshot for target release. | ||
# Use latest if no branch info detected, or not a release branch. | ||
get_latest_snapshot() { | ||
BRANCH="" | ||
LATEST_SNAPSHOT="" | ||
if [[ ${PULL_BASE_REF} == "release-"* ]]; then | ||
BRANCH=${PULL_BASE_REF#"release-"} | ||
LATEST_SNAPSHOT=$(curl https://quay.io//api/v1/repository/open-cluster-management/multicluster-observability-operator | jq '.tags|with_entries(select(.key|test("'${BRANCH}'.*-SNAPSHOT-*")))|keys[length-1]') | ||
fi | ||
if [[ ${LATEST_SNAPSHOT} == "null" ]] || [[ ${LATEST_SNAPSHOT} == "" ]]; then | ||
LATEST_SNAPSHOT=$(curl https://quay.io/api/v1/repository/stolostron/multicluster-observability-operator | jq '.tags|with_entries(select((.key|contains("SNAPSHOT"))and(.key|contains("9.9.0")|not)))|keys[length-1]') | ||
fi | ||
|
||
# trim the leading and tailing quotes | ||
LATEST_SNAPSHOT="${LATEST_SNAPSHOT#\"}" | ||
LATEST_SNAPSHOT="${LATEST_SNAPSHOT%\"}" | ||
echo ${LATEST_SNAPSHOT} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters