Skip to content

Commit

Permalink
Get image ref from kind env file
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Baungard Hansen <[email protected]>
  • Loading branch information
jacobbaungard committed May 28, 2024
1 parent 939fbbd commit bb0437f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cicd-scripts/setup-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bb0437f

Please sign in to comment.