Skip to content

Commit

Permalink
Update relative paths in start.sh script for MCE installs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rhmdnd committed Jun 13, 2022
1 parent d3e3619 commit 2aac894
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions multiclusterengine/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit 2aac894

Please sign in to comment.