"oc get --ignore-not-found" stops after the first missing object

Solution Verified - Updated -

Issue

  • The oc get command has an --ignore-not-found option.
    Based on its description one would expect that all existing objects with the given names would be listed while no error would be produced for non-existent objects.
    What happens instead is that only objects until the first non-existent object are listed.

Environment

  • OpenShift Container Platform 3.7/3.9/3.10/3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content