Validating installation

You can validate the WebSphere® Liberty operator installation with Red Hat® OpenShift® CLI (oc) commands.

Before you begin

Set the environment variable for the WebSphere Liberty operator namespace. For example, the default steps for installation in the Red Hat OpenShift console use the following namespace:
WLO_NAMESPACE=openshift-operators
  1. Log in to the Red Hat OpenShift cluster as a cluster administrator.
  2. Validate the WebSphere Liberty operator installation.

Validating the WebSphere Liberty operator installation

To validate the WebSphere Liberty operator operator installation, run oc commands that list information about the WebSphere Liberty operator operator. Be sure that the WLO_NAMESPACE environment variable is set.

  • Verify whether the operator subscription exists.
    oc -n $WLO_NAMESPACE get subscription | grep websphere-liberty

    When the operator subscription exists, the command output lists the operator subscription information.

    ibm-websphere-liberty   ibm-websphere-liberty   ibm-operator-catalog
  • Verify the installation status of the operator.
    oc -n $WLO_NAMESPACE get csv | grep websphere-liberty

    The command output has Succeeded for a successful installation.

    ibm-websphere-liberty.v1.3.1   IBM WebSphere Liberty   1.3.1                Succeeded