Skip to content

Commit d767338

Browse files
Merge pull request #2190 from kevinrizza/install-script-update
Check for conflicting install
2 parents 5f9e7d1 + d7eead7 commit d767338

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: scripts/install.sh

+6
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)