Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/openshift-upgrade-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
run: cd scripts && ./openshift-upgrade-test.sh
env:
OC_TOKEN: ${{ secrets.OPENSHIFT_UPGRADE_TOKEN }}
CLUSTER_API_URL: ${{ secrets.OPENSHIFT_SERVER_API }}
CLUSTER_API_URL: ${{ secrets.OPENSHIFT_UPGRADE_SERVER_API }}
LATEST_RELEASE_REGISTRY: ${{ github.event.inputs.previousReleaseRegistry }}
REGISTRY: ${{ github.event.inputs.registryForNewRelease }}

Expand Down
14 changes: 11 additions & 3 deletions scripts/openshift-upgrade-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
set -eou pipefail

# This test is designed to be launched from "mongodb-atlas-kubernetes/scripts" catalog
#
# Before running, make sure you have the following tools:
# * opm 4.9+
# * kustomize
# * operator-sdk
# * controller-gen
# * yq
#
# Test conf
TEST_NAMESPACE=${TEST_NAMESPACE:-"atlas-upgrade-test"}
LATEST_RELEASE_VERSION="${LATEST_RELEASE_VERSION:-1.0.0}"
Expand Down Expand Up @@ -30,9 +38,9 @@ OPERATOR_CATALOG_IMAGE="${REGISTRY}/${OPERATOR_NAME}-catalog:${CURRENT_VERSION}"
OPERATOR_CATALOGSOURCE_NAME="${OPERATOR_CATALOG_NAME}"
OPERATOR_SUBSCRIPTION_NAME="${OPERATOR_NAME}-subscription"

millisecond=1
second=$(( 1000 * millisecond ))
DEFAULT_TIMEOUT=$((2 * second))
second=1
minute=$(( 60 * second ))
DEFAULT_TIMEOUT=$((4 * minute))

if [ -z "${OC_TOKEN+x}" ]; then
echo "OC_TOKEN is not set"
Expand Down