Which command retrieves the tags for all inbuilt PHP image streams in OpenShift?

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 retrieves the tags for all inbuilt PHP image streams in OpenShift?

Explanation:
Retrieving the PHP image stream tags starts with listing the image stream tags in the OpenShift openshift namespace and then filtering for PHP. The istag resource represents individual tags of image streams, so using oc get istag -n openshift shows all tags, and piping through grep php narrows the output to only the PHP-related streams. This directly provides the tags for all built-in PHP image streams. Listing all image stream tags without filtering would include many non-PHP streams, and filtering only for php7 could miss other PHP tags.

Retrieving the PHP image stream tags starts with listing the image stream tags in the OpenShift openshift namespace and then filtering for PHP. The istag resource represents individual tags of image streams, so using oc get istag -n openshift shows all tags, and piping through grep php narrows the output to only the PHP-related streams. This directly provides the tags for all built-in PHP image streams. Listing all image stream tags without filtering would include many non-PHP streams, and filtering only for php7 could miss other PHP tags.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy