Skip to content

Release 2.7.0 op #1219

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

Draft
wants to merge 7 commits into
base: release-2.7.0
Choose a base branch
from
Draft
Changes from 4 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
23 changes: 18 additions & 5 deletions e2e-tests/vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export TEMP_DIR="/tmp/kuttl/pg/${test_name}"
export GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
export VERSION=${VERSION:-$(echo "${GIT_BRANCH}" | sed -e 's^/^-^g; s^[.]^-^g;' | tr '[:upper:]' '[:lower:]')}

if command -v oc &>/dev/null; then
if oc get projects; then
export OPENSHIFT=4
fi
fi

export IMAGE_BASE=${IMAGE_BASE:-"perconalab/percona-postgresql-operator"}
export IMAGE=${IMAGE:-"${IMAGE_BASE}:${VERSION}"}
export PG_VER="${PG_VER:-17}"
Expand All @@ -28,13 +34,20 @@ export IMAGE_PMM3_SERVER=${IMAGE_PMM3_SERVER:-"perconalab/pmm-server:3-dev-lates
export PGOV1_TAG=${PGOV1_TAG:-"1.4.0"}
export PGOV1_VER=${PGOV1_VER:-"14"}

if [[ $OPENSHIFT ]]; then
REGISTRY='docker.io/'
echo "Appending 'docker.io/' to image variables for OpenShift..."

for var in $(printenv | grep -E '^IMAGE' | awk -F'=' '{print $1}'); do
var_value=$(eval "echo \$$var")
new_value="${REGISTRY}${var_value}"
export "$var=$new_value"
echo "$var=$new_value"
done
fi

# shellcheck disable=SC2034
date=$(which gdate || which date)
# shellcheck disable=SC2034
sed=$(which gsed || which sed)

if command -v oc &>/dev/null; then
if oc get projects; then
export OPENSHIFT=4
fi
fi
Loading