Skip to main contentIBM  AIOps Training

Installing the IBM Catalog

🚀 TASK: Install the IBM Catalog source

🌏 Documentation for the Task: Online starter installation of CP4AIOPS

Add the CP4AIOPS CatalogSource to your OpenShift cluster as described in the Documentation.

    1. Run the following command to create the CatalogSource.

      cat << EOF | oc apply -f -
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      metadata:
      name: ibm-operator-catalog
      namespace: openshift-marketplace
      spec:
      displayName: ibm-operator-catalog
      publisher: IBM Content
    2. Update the CatalogSource to always use the current image digest by running the following commands:

      IMGDIGEST=`oc get pods -n openshift-marketplace -l=olm.catalogSource=ibm-operator-catalog --no-headers -o=jsonpath="{.items[0].status.containerStatuses[0].imageID}" -n openshift-marketplace` && \
      oc patch catalogsource ibm-operator-catalog -n openshift-marketplace --type=json -p "[{ "op": "test", "path": "/spec/image", "value": "\"icr.io/cpopen/ibm-operator-catalog:latest\"" }, { "op": "replace", "path": "/spec/image", "value": "\"$IMGDIGEST\"" }]"

    This creates the CatalogSource that provides the available IBM Operators (not just CP4AIOPS).

Page last updated: 03 November 2022