Skip to content

Commit

Permalink
Print if REGISTRY_ADDRESS is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolovison committed Nov 18, 2024
1 parent 6209cac commit 0a4c31f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/tests/collect_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function display_pod_info {
local NAMESPACE=$1
local POD_NAMES

POD_NAMES=$(kubectl -n "${DSPA_NS}" get pods -o custom-columns=":metadata.name")
POD_NAMES=$(kubectl -n "${DSPA_NS}" get pods -o custom-columns=":metadata.name" --field-selector=status.phase=Failed)

if [[ -z "${POD_NAMES}" ]]; then
echo "No pods found in namespace '${NAMESPACE}'."
Expand Down
5 changes: 4 additions & 1 deletion .github/scripts/tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ ENDPOINT_TYPE="service"

get_dspo_image() {
if [ "$REGISTRY_ADDRESS" = "" ]; then
echo "REGISTRY_ADDRESS variable not defined." && exit 1
# this function is called by `IMG=$(get_dspo_image)` that captures the standard output of get_dspo_image
set -x
echo "REGISTRY_ADDRESS variable not defined."
exit 1
fi
local image="${REGISTRY_ADDRESS}/data-science-pipelines-operator"
echo $image
Expand Down

0 comments on commit 0a4c31f

Please sign in to comment.