-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2298 from rzetelskik/openshift-aws-e2e-release-sc…
…ript Add a dedicated CI script to run E2Es with published releases on OpenShift on AWS
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (C) 2025 ScyllaDB | ||
# | ||
|
||
set -euExo pipefail | ||
shopt -s inherit_errexit | ||
|
||
trap 'kill $( jobs -p ); exit 0' EXIT | ||
|
||
if [ -z "${ARTIFACTS+x}" ]; then | ||
echo "ARTIFACTS can't be empty" > /dev/stderr | ||
exit 2 | ||
fi | ||
|
||
source "$( dirname "${BASH_SOURCE[0]}" )/../lib/kube.sh" | ||
source "$( dirname "${BASH_SOURCE[0]}" )/lib/e2e.sh" | ||
parent_dir="$( dirname "${BASH_SOURCE[0]}" )" | ||
|
||
trap gather-artifacts-on-exit EXIT | ||
|
||
REENTRANT="${REENTRANT=false}" | ||
export REENTRANT | ||
|
||
SO_NODECONFIG_PATH="${SO_NODECONFIG_PATH=${parent_dir}/manifests/cluster/nodeconfig-openshift-aws.yaml}" | ||
export SO_NODECONFIG_PATH | ||
|
||
SO_SCYLLACLUSTER_STORAGECLASS_NAME="${SO_SCYLLACLUSTER_STORAGECLASS_NAME=scylladb-local-xfs}" | ||
export SO_SCYLLACLUSTER_STORAGECLASS_NAME | ||
|
||
SCYLLA_OPERATOR_FEATURE_GATES="${SCYLLA_OPERATOR_FEATURE_GATES:-AllAlpha=true,AllBeta=true}" | ||
export SCYLLA_OPERATOR_FEATURE_GATES | ||
|
||
for i in "${!KUBECONFIGS[@]}"; do | ||
KUBECONFIG="${KUBECONFIGS[$i]}" DEPLOY_DIR="${ARTIFACTS}/deploy/${i}" timeout --foreground -v 10m "${parent_dir}/../ci-deploy-release.sh" "${SO_IMAGE}" & | ||
ci_deploy_bg_pids["${i}"]=$! | ||
done | ||
|
||
for pid in "${ci_deploy_bg_pids[@]}"; do | ||
wait "${pid}" | ||
done | ||
|
||
KUBECONFIG="${KUBECONFIGS[0]}" apply-e2e-workarounds | ||
KUBECONFIG="${KUBECONFIGS[0]}" run-e2e |