Chapter 16. Checking the status of a custom resource

This procedure describes how to find the status of a custom resource.


  • An OpenShift cluster.
  • The Cluster Operator is running.


  • Specify the custom resource and use the -o jsonpath option to apply a standard JSONPath expression to select the status property:

    oc get kafka <kafka_resource_name> -o jsonpath='{.status}'

    This expression returns all the status information for the specified custom resource. You can use dot notation, such as status.listeners or status.observedGeneration, to fine-tune the status information you wish to see.

Additional resources