oc export to directory not working as expected in Red Hat OpenShift Container Platform

Solution Verified - Updated -

Issue

  • The oc export --help mentions that one can export Objects to a directory. If I do oc export ServiceAccount -f [dir-name], the following error message is reported:
error: when paths, URLs, or stdin is provided as input, you may not specify resource arguments as well
  • How is oc export -f intended to work? The documentation is rather limited and not helping really.

Environment

  • Red Hat OpenShift Container Platform 3.x

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