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 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.