-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install.sh does not work if you have never installed OLM before #2210
Comments
Another user was running into this problem in d7eead7. |
I think this will fix it: $ diff /tmp/olm-install.sh.ORIG /tmp/olm-install.sh
17,18c17
< 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 |
That script is doing something now that I fixed it as I describe above:
|
@jmazzitelli SGTM - do you want to open a PR that fixes this script? |
PR: #2211 |
Until that PR is merged and released, the workaround would be to just use
|
fixes: operator-framework#2210 Signed-off-by: John Mazzitelli <mazz@redhat.com>
fixes: operator-framework#2210 Signed-off-by: John Mazzitelli <mazz@redhat.com>
fixes: operator-framework#2210 Signed-off-by: John Mazzitelli <mazz@redhat.com>
fixes: operator-framework/operator-lifecycle-manager#2210 Signed-off-by: John Mazzitelli <mazz@redhat.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: fb6e5e759952c76d9e8a21d203da6d1fd231f1c8
fixes: operator-framework/operator-lifecycle-manager#2210 Signed-off-by: John Mazzitelli <mazz@redhat.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: fb6e5e759952c76d9e8a21d203da6d1fd231f1c8
fixes: operator-framework/operator-lifecycle-manager#2210 Signed-off-by: John Mazzitelli <mazz@redhat.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: fb6e5e759952c76d9e8a21d203da6d1fd231f1c8
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:
I run that and it does nothing. Silently exits with no messages, no errors, no nothing:
The problem is this: https://github.com/operator-framework/operator-lifecycle-manager/blob/v0.18.2/scripts/install.sh#L17-L18
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).
The text was updated successfully, but these errors were encountered: