"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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.