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) }