Chapter 12. Checking the status of a custom resource
This procedure describes how to find the status of a custom resource.
Prerequisites
- An OpenShift cluster
- A running Cluster Operator
Procedure
Specify the custom resource and use
-o jsonpathoption to apply a standard JSONPath expression to select thestatusproperty:oc get kafka <kafka_resource_name> -o jsonpath='{.status}'oc get kafka <kafka_resource_name> -o jsonpath='{.status}'Copy to Clipboard Copied! Toggle word wrap Toggle overflow This expression returns all the status information for the specified custom resource. You can use dot notation, such as
status.listeners, to fine-tune the status information you wish to see.
Additional resources
- Section 2.2.2, “AMQ Streams custom resource status”
- For more information about using JSONPath, see JSONPath support.