Skip to content

Commit

Permalink
install.sh should not abort if openshift olm is not installed
Browse files Browse the repository at this point in the history
fixes: #2210
Signed-off-by: John Mazzitelli <mazz@redhat.com>
  • Loading branch information
jmazzitelli authored and openshift-cherrypick-robot committed Jun 28, 2021
1 parent f033e4e commit 0fc57e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]; then
exit 1
fi

kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1; then
echo "OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..."
exit 1
fi
Expand Down

0 comments on commit 0fc57e0

Please sign in to comment.