Skip to content

install.sh does not work if you have never installed OLM before #2210

Closed
@jmazzitelli

Description

@jmazzitelli

I'm looking to install OLM in a fresh new minikube. I go to the operatorhub.io page and it tells me to run install.sh to install OLM:

image

I run that and it does nothing. Silently exits with no messages, no errors, no nothing:

$ curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.18.2/install.sh | bash -s v0.18.2
$ 

The problem is this: https://github.com/operator-framework/operator-lifecycle-manager/blob/v0.18.2/scripts/install.sh#L17-L18

kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1
...

That silently exits the script because of the set -e on line 6.

Suggest you either remove line 6 or refactor that kubectl call + if-stmt so it doesn't abort on non-0 exit code (which is what you typically will expect here because someone running this most likely doesn't have OLM yet).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions