Validating installation
We can validate the WebSphere Liberty operator installation with Red Hat® OpenShift® CLI (oc) commands.
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
- Log in to the Red Hat OpenShift cluster as a cluster administrator.
- 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
oc -n $WLO_NAMESPACE get csv | grep websphere-liberty
The command output has Succeeded for a successful installation.
ibm-websphere-liberty.v1.4.4 IBM WebSphere Liberty 1.4.4 Succeeded