diff --git a/cicd-scripts/setup-e2e-tests.sh b/cicd-scripts/setup-e2e-tests.sh index 22a859934b..ce0e7e8426 100755 --- a/cicd-scripts/setup-e2e-tests.sh +++ b/cicd-scripts/setup-e2e-tests.sh @@ -130,6 +130,12 @@ EOF # deploy the MCO operator via the kustomize resources deploy_mco_operator() { + # makes sure we get the MULTICLUSTER_OBSERVABILITY_OPERATOR_IMAGE_REF + if [[ -n ${IS_KIND_ENV} ]]; then + source ${ROOTDIR}/tests/run-in-kind/env.sh + fi + cat ${ROOTDIR}/tests/run-in-kind/env.sh + if [[ -n ${MULTICLUSTER_OBSERVABILITY_OPERATOR_IMAGE_REF} ]]; then cd ${ROOTDIR}/operators/multiclusterobservability/config/manager && kustomize edit set image quay.io/stolostron/multicluster-observability-operator=${MULTICLUSTER_OBSERVABILITY_OPERATOR_IMAGE_REF} else @@ -138,7 +144,6 @@ deploy_mco_operator() { cd ${ROOTDIR} kustomize build ${ROOTDIR}/operators/multiclusterobservability/config/default | kubectl apply -n ${OCM_DEFAULT_NS} --server-side=true -f - - echo "MCO IMAGE REF: ${MULTICLUSTER_OBSERVABILITY_OPERATOR_IMAGE_REF}" echo "MCO deployment info:" cat ${ROOTDIR}/operators/multiclusterobservability/config/manager/manager.yaml