Skip to content

Commit d7eead7

Browse files
committed
Check for conflicting install
Update the install script so that known conflicting downstream installations of OLM don't cause conflicts and hotloop
1 parent 5f9e7d1 commit d7eead7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]; then
1414
exit 1
1515
fi
1616

17+
kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1
18+
if [[ $? -eq 0 ]]; then
19+
echo "OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..."
20+
exit 1
21+
fi
22+
1723
release="$1"
1824
base_url="${2:-${default_base_url}}"
1925
url="${base_url}/${release}"

0 commit comments

Comments
 (0)