-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying from OperatorHub on OpenShift
Scott Trent edited this page Apr 18, 2024
·
6 revisions
Create the following file called catalogsource.yaml
:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: operatorhubio-catalog
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/operatorhubio/catalog:latest
displayName: Community Operators
publisher: OperatorHub.io
Apply the changes:
oc apply -f catalogsource.yaml
oc patch -n openshift-marketplace OperatorHub cluster --type merge -p '{"spec":{"sources":[{"name":"operatorhubio-catalog","disabled":false},{"name":"community-operators","disabled":false}]}}'
Next use the OpenShift web console to install the SusQL operator:
- Click on "Operator->OperatorHub"
- Search for SusQL
- Click on it, and follow the GUI prompts to install.
- First use the web console GUI to uninstall the operator
- Run the following commands:
oc delete -f catalogsource.yaml
oc patch -n openshift-marketplace OperatorHub cluster --type merge -p '{"spec":{"sources":[{"name":"operatorhubio-catalog","disabled":true},{"name":"community-operators","disabled":true}]}}'
oc apply -f catalogsource.yaml
oc patch -n openshift-marketplace OperatorHub cluster --type merge -p '{"spec":{"sources":[{"name":"operatorhubio-catalog","disabled":false},{"name":"community-operators","disabled":false}]}}'
- Now go back to the "Operator-OperatorHub" web GUI, and reinstall the SusQL operator. (There is certainly a better way to upgrade. Perhaps just toggling operatorhubio-catalog off and on might work... I will report back here upon further experimentation.)