From aec5657bbdf5d3319419b913b30b083e98661c04 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Mon, 8 Aug 2022 12:33:54 +0200 Subject: [PATCH] test: only use --index-image for "run bundle" "run bundle-upgrade" does not support it, breaking the version skew tests after merging the PR. --- test/start-operator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/start-operator.sh b/test/start-operator.sh index 25b9983f4..22e6c5453 100755 --- a/test/start-operator.sh +++ b/test/start-operator.sh @@ -93,7 +93,7 @@ function deploy_using_olm() { # Deploy the operator # Pinning the image is a workaround for https://github.com/operator-framework/operator-registry/issues/984. ${BINDIR}/operator-sdk run bundle${upgrade} ${NAMESPACE} --timeout 5m ${TEST_LOCAL_REGISTRY}/pmem-csi-bundle:v${BUNDLE_VERSION} \ - --index-image=quay.io/operator-framework/opm:v1.23.0 \ + $(if ! [ "${upgrade}" ]; then echo '--index-image=quay.io/operator-framework/opm:v1.23.0'; fi) \ $(if ${TEST_LOCAL_REGISTRY_SKIP_TLS}; then echo '--skip-tls'; fi) }