Which command lists all image stream names in the openshift namespace?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command lists all image stream names in the openshift namespace?

Explanation:
Image streams are resources namespaced within OpenShift, so to see their names you query the image stream resource in a specific namespace and request only the names. Using the oc get command with the image stream resource type and the namespace flag -n openshift targets the built-in OpenShift resources in that namespace, and the output option -o name prints just the resource names. This combination precisely lists all image stream names in the openshift namespace. Other options wrongfully target a different namespace or omit the -o name flag, which would yield more than just the names.

Image streams are resources namespaced within OpenShift, so to see their names you query the image stream resource in a specific namespace and request only the names. Using the oc get command with the image stream resource type and the namespace flag -n openshift targets the built-in OpenShift resources in that namespace, and the output option -o name prints just the resource names. This combination precisely lists all image stream names in the openshift namespace. Other options wrongfully target a different namespace or omit the -o name flag, which would yield more than just the names.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy