From 2aac894568136e2c540fe6aefa9eda819dabb532 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Wed, 30 Mar 2022 16:41:25 -0500 Subject: [PATCH] Update relative paths in start.sh script for MCE installs This installation script must have been shuffled around from the root of the repository since it contained relative paths to files and directories available from the repository root. Following the directions in the multiclusterengine/ directory results in a failed deploy because the script assumes those relative paths. This commit updates the script so that it installs cleanly by updating the relative paths. Closes #242 --- multiclusterengine/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/multiclusterengine/start.sh b/multiclusterengine/start.sh index 9340cccd3..9bc9525a9 100755 --- a/multiclusterengine/start.sh +++ b/multiclusterengine/start.sh @@ -41,9 +41,9 @@ fi IMG="${_REPO}:${SNAPSHOT_CHOICE}" yq eval -i '.spec.image = env(IMG)' catalogsources/multicluster-engine.yaml VER="${SNAPSHOT_CHOICE:0:3}" yq eval -i '.spec.channel = "stable-"+ env(VER)' multiclusterengine/operator/subscription.yaml -oc apply -f catalogsources/multicluster-engine.yaml +oc apply -f ../catalogsources/multicluster-engine.yaml oc create ns multicluster-engine --dry-run=client -o yaml | oc apply -f - -oc apply -k multiclusterengine/operator/ +oc apply -k operator/ CSVName="" for run in {1..10}; do @@ -77,7 +77,7 @@ for run in {1..10}; do done if [ $_apiReady -eq 1 ]; then - oc apply -f multiclusterengine/multicluster_v1alpha1_multiclusterengine.yaml + oc apply -f multicluster_v1alpha1_multiclusterengine.yaml echo "multiclusterengine installed successfully" else echo "multiclusterengine subscription could not install in the allotted time."